With Answer Integrator Tech Exam
With Answer Integrator Tech Exam
Javascript
1. Define the enhanced e-commerce dataLayer definition for
Note: It is enough to write the code for any two products listed in the screenshot
dataLayer.push({
'event': 'ecommercePurchase',
'eventDetails.category': 'Ecommerce',
'eventDetails.action': 'Purchase',
'eventDetails.nonInteraction': 'true',
'checkoutType': 'Guest', //E.g. Guest,Existing Login,New Signup
'ecommerce': {
'currencyCode': 'AUD',
'purchase': {
'actionField': {
'id': '143020', //Transaction ID. Set actual Transaction ID here.
'affiliation': 'Sparkline', //Always need to have this as Sparkline
'revenue': '79.95', //revenue amount
'tax': '7.995', //tax amount (@ 10% GST)
'shipping': '0', //delivery fee amount if applicable. Set as 0 for free
delivery.
'coupon': 'ABC' //track this as the coupon code at the transaction
level that the user uses to make a Purchase.
},
'products': [
{
'name': 'Essential weekend pant', //Product Name
'id': 'XXXXX', //Product ID. Replace with actual value here.
'price': '71.955', //price before tax/delivery fee
'quantity': 1, //product quantity
'coupon': 'XXX', //product level coupon/promo code used. If no
product coupon/promo code is used, this field need not be tracked.
'variant': '10', //product size
'color': 'Cinder Blue', //product colour
'fashionStyle': 'Womens', //fashion style
'category': 'Pants' //product category
},
// add more products as required
...
]
}
}
});
Web Analytics
1. What is are the common types of attribution and the benefits of having different models?
Detail your thoughts
2. Define a session.
1. Where will you instruct your developers to place the GTM snippet on the website? If you are using
Tealium and not GTM, where will you instruct your developers to place the Tealium IQ snippet on the
page?
2. Assuming www.sparkline.com is a single page application, how would you configure GTM's pageview
tag to track pageviews for this? Can you set up a sample pageview tag with the necessary variables and
triggers in the GTM Container you created?
3. Implement the following FB Standard event pixel in GTM. It should fire on load of the given test page.
Assume that the following data is set in dataLayer on load of the same page:
<script>
dataLayer.push({
'ecommerce': {
'purchase': {
'actionField': {
'id': 'T12345',
'affiliation': 'Online Store',
'revenue': '35.43',
'tax':'4.90',
'shipping': '5.99',
'coupon': 'SUMMER_SALE'
},
'products': [{
'name': 'Triblend Android T-Shirt',
'id': '12345',
'price': '15.25',
'brand': 'Google',
'category': 'Apparel',
'variant': 'Gray',
'quantity': 1,
'coupon': ''
}]
}
}
});
</script>
4. Implement the following DoubleClick conversion pixel on load of the test page provided. Assume the
Assume that the following data is set in dataLayer on load of the same page:
<script>
dataLayer.push({
'ecommerce': {
'purchase': {
'actionField': {
'id': 'T12345',
'affiliation': 'Online Store',
'revenue': '35.43',
'tax':'4.90',
'shipping': '5.99',
'coupon': 'SUMMER_SALE'
},
'products': [{
'name': 'Triblend Android T-Shirt',
'id': '12345',
'price': '15.25',
'brand': 'Google',
'category': 'Apparel',
'variant': 'Gray',
'quantity': 1,
'coupon': ''
}]
}
}
});
</script>
• Tag type(s):