Duplicate GA tracking

Solved
resphichen
Tourist
4 0 4

We have developers build our store while we just realized that it has two GA tracking codes firing (our GA code and extra tracking code).

 

The extra one is "UA-116858069-1", and it may come from Shopify payment while I cannot figure out how to remove it.

There are several tracked pages have it:

 

/buyflow/merchant_page/pay_frame_requested

/buyflow/merchant_page/initialize_payments_client

/buyflow/merchant_page/pay_frame_loaded_with_all_js

/buyflow/merchant_page/pay_frame_loaded

/buyflow/merchant_page/is_ready_to_pay_api_true

 

Hostnamewww.google-analytics.com
Protocolhttps
Path/collect

 

Did anyone face this before and know how to resolve it? Thanks so much!!!

Accepted Solution (1)

Accepted Solutions
Katy
Shopify Staff
Shopify Staff
779 43 177

This is an accepted solution.

Hi, @resphichen !

 

Katy here from Shopify. I hope all is well with you, and welcome to our Community here.

 

Thanks so much for providing as much context as you have, this is super helpful.

 

I understand that you are using Shopify Payments. Do you have Google Pay Dynamic checkout linked with this by any chance? On stores that have Google Pay dynamic checkout enabled, this will then display an extra Analytics tag on the pages with the Google Pay button -  which seems to be in line with the tracked pages you have listed. To date this has been appearing as UA-116858069-1 (though this may change in future).

 

If you do have Google Pay enabled this is likely the cause, in which case this tag is contained within the Google Pay checkout button's iframe and will not affect any tracking on your store.

 

Do have check in with your developers to see. If you need a hand or have any questions feel free to let me know.

 

Cheers,
Katy

Please note: This account is no longer regularly monitored.
 - If you need assistance please do start a new topic (referencing an older topic/post if you find this helpful).
 - Thank you for your understanding. We hope you enjoy exploring the Community.
 - To learn more visit the Shopify Help Center or the Shopify Blog.

View solution in original post

Replies 4 (4)
Katy
Shopify Staff
Shopify Staff
779 43 177

This is an accepted solution.

Hi, @resphichen !

 

Katy here from Shopify. I hope all is well with you, and welcome to our Community here.

 

Thanks so much for providing as much context as you have, this is super helpful.

 

I understand that you are using Shopify Payments. Do you have Google Pay Dynamic checkout linked with this by any chance? On stores that have Google Pay dynamic checkout enabled, this will then display an extra Analytics tag on the pages with the Google Pay button -  which seems to be in line with the tracked pages you have listed. To date this has been appearing as UA-116858069-1 (though this may change in future).

 

If you do have Google Pay enabled this is likely the cause, in which case this tag is contained within the Google Pay checkout button's iframe and will not affect any tracking on your store.

 

Do have check in with your developers to see. If you need a hand or have any questions feel free to let me know.

 

Cheers,
Katy

Please note: This account is no longer regularly monitored.
 - If you need assistance please do start a new topic (referencing an older topic/post if you find this helpful).
 - Thank you for your understanding. We hope you enjoy exploring the Community.
 - To learn more visit the Shopify Help Center or the Shopify Blog.

Janko1
New Member
1 0 0

Hi Katy,

 

does this second UA property come from shopify? I use localStorage-based consent management through tag manager on a client's website for privacy compliance, and that second analytics script is troublesome.

 

Thanks

Janko

Katy
Shopify Staff
Shopify Staff
779 43 177

Hi, @Janko1 !

 

Thanks for joining in here.

 

I'm sorry to hear that this is proving problematic for you/ your client. This property is not created by Shopify, but rather by Google Pay when offered as a payment method.

 

Google Pay creates a button on the cart or checkout page that customers can click to pay with their Google account. The button itself is served in an iframe, and the Google Analytics code is then firing from that iframe. If you look at the individual pageview requests in Google Tag Assistant, this should show that pay.google.com is the tracked page, with a referrer of checkout.shopify.com. You may in this case like to chat with their own team directly for further help on this.

 

I hope this helps to clarify for you.

 

Cheers,
Katy

 

Please note: This account is no longer regularly monitored.
 - If you need assistance please do start a new topic (referencing an older topic/post if you find this helpful).
 - Thank you for your understanding. We hope you enjoy exploring the Community.
 - To learn more visit the Shopify Help Center or the Shopify Blog.

newday2day
Tourist
9 0 6

I have just been noticing this same code on my site.  But, it was before I had enabled google pay.  It is troublesome for me as well.  I wondered if it was the google channel connection w/ shopify and google?  Any updates here?