Analytics
4.6K members online now
4.6K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Universal Analytics Event Firing from SumoMe App

Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆

Hey Folks,

 

I'm running into a problem here and SumoMe support has been unhelpful. According to this page, I can have a SumeMo app installed on a webpage fire an event into GA, either from the classic GA tag or Universal Analytics tag:

 

https://help.sumome.com/customer/portal/articles/2005847-tracking-pixel---google-analytics

 

The problem (I think) with this article is that it only shows the ga.js snippet to place on the SumoMe forms, not the analytics.js snippet to trigger the event.

 

Has anyone implemented this before or something similar?

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author DavidCulbertson
May 2016

Re: Universal Analytics Event Firing from SumoMe App

Top Contributor
# 4
Top Contributor

Hi, David,

Thanks for clarifying. You are correct in saying that "_gaq" works only for ga.js.

 

For the Tracking Pixel, I believe the correct codes should be:

ga('create', 'UA-TTTTTTT-Q', 'auto');
ga('send', 'event', 'SumoMe', 'Popup', 'List Builder 1');

 

and in the Conversion Pixel it should be:

ga('send', 'event', 'SumoMe', 'Conversion', 'List Builder 1');

 (Note that I took the exact same event parameters as in the image.)

 

Hope this helps.

 

 

 

 

Nicky Yuen, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.
Find me on: Google+ | LinkedIn

View solution in original post

Re: Universal Analytics Event Firing from SumoMe App

Top Contributor
# 2
Top Contributor
Hi DavidCulbertson,

I'm not sure if I'm misunderstanding your question, but according to the link you posted, I do see instructions for analytics.js, both for the event tracking, as well as the tracking snippet. Can you please clarify?

Thanks.
Nicky Yuen, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.
Find me on: Google+ | LinkedIn

Re: Universal Analytics Event Firing from SumoMe App

Follower ✭ ✭ ☆
# 3
Follower ✭ ✭ ☆

Hi Nicky,

 

Thanks for your reply. In the image of the SumoMe app on the help page, there are two fields shown: pixel tracking and conversion tracking. Each of those fields has a code example in it. Those code snippets begin _gaq.push. Won't that only work with ga.js, not analytics.js?

 

My core question is: When using analytics.js, what should the code snippets in the pixel tracking and conversion tracking fields be??

 

 

Marked as Best Answer.
Solution
Accepted by topic author DavidCulbertson
May 2016

Re: Universal Analytics Event Firing from SumoMe App

Top Contributor
# 4
Top Contributor

Hi, David,

Thanks for clarifying. You are correct in saying that "_gaq" works only for ga.js.

 

For the Tracking Pixel, I believe the correct codes should be:

ga('create', 'UA-TTTTTTT-Q', 'auto');
ga('send', 'event', 'SumoMe', 'Popup', 'List Builder 1');

 

and in the Conversion Pixel it should be:

ga('send', 'event', 'SumoMe', 'Conversion', 'List Builder 1');

 (Note that I took the exact same event parameters as in the image.)

 

Hope this helps.

 

 

 

 

Nicky Yuen, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.
Find me on: Google+ | LinkedIn

Re: Universal Analytics Event Firing from SumoMe App

Follower ✭ ✭ ☆
# 5
Follower ✭ ✭ ☆
Thank you Nicky!

Re: Universal Analytics Event Firing from SumoMe App

Follower ✭ ✭ ☆
# 6
Follower ✭ ✭ ☆
I finally got a reply from SumoMe customer service:

We have examples of both the Tracking Pixel and Conversion Pixel code for you to use, using the analytics.js method, which are both on our Tracking Pixel help page. In case you missed it:

Tracking Pixel code:

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-XXXXXXXX-X', 'auto');
ga('send', 'event', 'category', 'action', 'label');
</script>

Conversion Pixel code:

<script>
ga('send', 'event', 'category', 'action', 'label');
</script>

You'll want to modify the 'category' 'action' and 'label' according to how you want to track them in GA. You'll also want to make sure your own Tracking Property ID replaces the 'UA-XXXXXXXX-X' example.

Re: Universal Analytics Event Firing from SumoMe App

Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭
This worked for me! Smiley Happy