0% found this document useful (0 votes)
151 views

With Answer Integrator Tech Exam

This document contains questions for a technical round interview for a lead integrator role. It includes questions on JavaScript, regular expressions, Java code review, web analytics concepts like attribution and sessions, Google Tag Manager implementation, and configuring Facebook and DoubleClick pixels. The candidate is asked to define data layers, write regex patterns, implement tags in GTM using sample pageview and conversion tags, and test values on a sample website.

Uploaded by

Fade Book
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
151 views

With Answer Integrator Tech Exam

This document contains questions for a technical round interview for a lead integrator role. It includes questions on JavaScript, regular expressions, Java code review, web analytics concepts like attribution and sessions, Google Tag Manager implementation, and configuring Facebook and DoubleClick pixels. The candidate is asked to define data layers, write regex patterns, implement tags in GTM using sample pageview and conversion tags, and test values on a sample website.

Uploaded by

Fade Book
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Round 1: Technical

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

2. Write a regular expression to match the urls ending with a sequence


of numbers. For example:
www.sparkline.com/123 - Should match
www.sparkline.com/test/456 - Should match
www.sparkline.com/ - Should not match
www.sparkline.com/test3 - Should not match

public class fade {


public static void main(String[] args) {
String Url_Name = "www.sparkline.com/" ;
int Act_Url = 1;
while (Act_Url < 10) {
if (Act_Url > 5)
{
System.out.println("Invalid Seq Number");
Act_Url++;
continue;
}
System.out.println(Url_Name + Act_Url);
Act_Url++;
}
}
}

3. Assuming sparkline.com is an ecommerce website and we are interested in tracking


product level custom dimensions across the ecommerce flow, starting from Product
Details to Purchase. The product level dimensions that have been identified are color
and fashion style. As a Lead Integrator, your teammate is sharing this code to you forreview before
sending to the client. What do you think about this code? Are there any glaring errors seen?

Note: The below code is only for Purchase dataLayer

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.

3. What is the difference between a bounce rate and exit rate?

Tag Implementation (GTM)

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.

// Assuming a single item is purchased, fill the corresponding values for


each variable
fbq('track', 'Purchase', {
content_name: ' [product name] ',
content_category: ' [product category] ',
content_ids: ['product ID'],
content_type: 'product',
value: [revenue] ,
currency: ' [currency code] '
});

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

<img src="http://pubads.g.doubleclick.net/ activity; xsp=9659 ;qty=[quantity


of
items purchased]; cost=[revenue]; ord=[order id]?" width=1 height=1 border=0/>

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>

7. List down the following values by testing integrators-test.sparkline.com

• Google Analytics web property ID (ie UA-ID):

• No. of tags fired:

• Tag type(s):

• GTM container ID:

You might also like