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
5.4K members online now
5.4K 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

What is this?!?! ga ( 'create' , 'UA-XXXXXXXX-X' , 'auto' , 'localAccount' );

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Can someone tell me what the heck is going on here? Here is what the last part of our tracking script looks like:

ga('create', 'UA-XXXXXXXX-3', 'auto');

    ga('create', 'UA-YYYYYYYY-1', 'auto', 'localAccount');

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

   ga('send', 'pageview');

 

My GA script is supposed to look like this, right?

ga('create', 'UA-XXXXXXXX-3', 'auto');

 

ga('send', 'pageview');

 

Obviously the "Y" account is different than the "X" account. The "X" account is our original tracking ID. I am assuming the "Y" account is from one of our vendors.

 

Here is the problem: The original tracking ID is being tracked in GTM. So, this double implementation is causing 2 pageviews on certain pages of our site. I am assuming we don't need this second version of the tracking script, right? here is a sample of the pages that are getting more than 1 pageview:

https://www.miracle-ear.com/locations/schenectady-ny/

 

Here's the question: Can I remove the ga('create', 'UA-XXXXXXXX-3', 'auto'); | ga('send', 'pageview'); 

and leave the  ga('create', 'UA-YYYYYYYY-1', 'auto', 'localAccount'); | ga('localAccount.send', 'pageview'); 

without hurting the "Y" tracking script?

 

I am at my wits end. I can't find answers anywhere else. PLEEEEEEAAASE help!

 

Thank you!

 

Ron

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Ron R
February 2017

What is this?!?! ga ( 'create' , 'UA-XXXXXXXX-X' , 'auto' , 'localAccount' );

Top Contributor
# 2
Top Contributor

Hi,

 

Yes, you can remove that without any consequences. Tracking for the Y property will continue tracking normally.

 

Let me know if you have more questions.


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 Ron R
February 2017

What is this?!?! ga ( 'create' , 'UA-XXXXXXXX-X' , 'auto' , 'localAccount' );

Top Contributor
# 2
Top Contributor

Hi,

 

Yes, you can remove that without any consequences. Tracking for the Y property will continue tracking normally.

 

Let me know if you have more questions.


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

What is this?!?! ga ( 'create' , 'UA-XXXXXXXX-X' , 'auto' , 'localAccount' );

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

GREAT!! I will remove it!

 

Man...I sincerely appreciate your response. I literally looked everywhere I could think of and was seriously at the end of my rope. Thank you!

 

Ron