Exercise #1 Example customer questions

Exercise #1: Example customer questions
Description: Below are 3 common customer questions we receive. Please draft responses and/or followup responses to each question in the space below. This exercise helps us evaluate your ability to interpret customer requests and provide clear and comprehensive responses leveraging the available resources found in our docs, public site and app. Feel free to ask clarifying questions back to the customer in your response when appropriate.
Question #1:
Hi Segment,
Im using Wistia and I want to track my videos, specifically I want to track -Play-, -Pause-, and -End- events.
– The events need to show up in Google Analytics as events.
– The GA event Category should be -Video- for all video events.
– The event label should be the name of the video being played.
Can you help me with that? Id love to see actual code samples on how to fire the event.
Answer #1:
Enter your followup question/answer here
Question #2:
Hi Segment,
We recently got up and running on Segment. Got the JS and PHP sources set up broadcasting to Mixpanel, GA and Intercom. I was wondering if it is also possible to connect Intercom as a cloud source and also broadcast the events back to other integrations.
So for example, it would be nice to we could track opens and clicks from Intercom with Segment so we can broadcast those to Mixpanel and GA. We can of course do this ourselves by creating a simple webhook and use the PHP source to do that. But was just wondering if there is an even easier way.
Answer to Question #2:
Enter your followup question/answer here
Question #3:
Hey Segment,
Im using analytics.js to track events and I’m currently sending data to Intercom and Google Analytics. I’m tracking a few events that I don’t want to send to Google Analytics, but I do want to send them to Intercom. Can I do this in the Segment UI? If so, where do I do that? Is there another way to filter events in the `.track()` call itself?
Answer to Question #3:
Enter your followup question/answer here
Description: For this exercise, wed like to test your ability to read code and provide clear technical and non-technical descriptions of what the code is solving for.
Question #1: Describe what the following code block does when executed in a browser
function formatQs() {
var output = {};
var qs = document.location.search.substring(1);
qs = qs.split(&);
for (var i = 0; i qs.length; i++) {
var tokens = qs[i].split(=);
output[tokens[0].toLowerCase()] = tokens[1];
return output;
Question #2: Describe a specific scenario in which the above function would be used for tracking purposes, and more specifically how Google Analytics uses the data to track marketing campaigns.
Question #3: Assuming that the analytics.js library is loaded on the page, please update the code block above to send through the standard utm parameters as properties in an analytics.track() call. Additional requirements:
* Send only officially supported utm parameters as properties
* Send only utm parameters included in the URL query string (i.e. dont send null utm parameters)
* Name the track call: -User Referred-