AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
3.7K members online now
3.7K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Two tracking codes on one site, can't get named tracker to report data

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi, 
I'm trying to get two tracking codes setup on our site but the second, named tracker code (crystalballroompdx) isn't feeding any data to analytics.  Can you please check my code and see what I'm missing?

 

<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-4094548-14', 'auto');
ga('create', 'UA-4094548-7', 'auto', {name: 'crystalballroompdx'});
ga('require','linker');
ga('linker:autoLink',['etix.com','www.etix.com'],true);
ga('require','displayfeatures');
ga('send', 'pageview');
ga('crystalballroompdx.send';'pageview');

</script>

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Kristi G
April 2016

Re: Two tracking codes on one site, can't get named tracker to report data

Top Contributor
# 2
Top Contributor

Hi Kristi,

 

You have a syntax error in your code:

ga('crystalballroompdx.send';'pageview');

Should be:

ga('crystalballroompdx.send','pageview');

Hope this helps.


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Kristi G
April 2016

Re: Two tracking codes on one site, can't get named tracker to report data

Top Contributor
# 2
Top Contributor

Hi Kristi,

 

You have a syntax error in your code:

ga('crystalballroompdx.send';'pageview');

Should be:

ga('crystalballroompdx.send','pageview');

Hope this helps.


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Re: Two tracking codes on one site, can't get named tracker to report data

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Ah, a second pair of eyes...thank you! That did the trick Smiley Happy