Google Analtycis 4 implementation (through GTM)

Hi,

I’m a freelancing consultant who has been asked to set up GA4 (for this shopify store https://envelope1976.com/) and I want to do so through GTM. This is normally a very straight forward task, but I’m experiencing problems that I can’t seem to resolve.

Here comes some context that might help you help me :slightly_smiling_face:

  • The site has two language variations but seems to be setup as two separate sites (it doesn’t seem to inherit the same code at least)
  • It’s a normal Shopify store (not Shopify Plus)
  • I do not know how the store was built and I have no access to the persons who built it.

Ok, let’s dive into it.

  1. GTM is implemented by pasting the code snippets provided by GTM. One in the section and the other one in the section.

When inspecting the site you can it appearing correctly as well.

However, when I go the Norwegian version of it, I can’t see it when inspecting. Which seems weird to me, or is it 2 separate stores, with its own theme files?

  1. I have checked and triple-checked that I’m using the correct IDs, and the debug verifies that as well. So that’s not part of the problem.

  2. Debugging seems to work fine. I see tags fired and data pushed in the debug mode of GTM and I see data being pushed to GA4 in real-time.

In GTM:

In GA4:

So it all looks good, this is exactly what I would expect for a functioning GA4 setup. But now when I go in to the actual GA4 property the fun stops. The data stream is not receiving any data at all and it doesn’t even seem to be connected.

How can this be? It seems like it’s not pushing it if it’s not being “provoced” by the DeBug functionality in both platforms but I don’t understand it all.

Also, got any thought on how the site might be set up when it comes to the two different languages and the fact that they don’t seem to be sharing the same source code?

I’m about to get crazy here trying to figure it out. Hopefully I’m blind to something obvious here so someone could point it out fast. Anyways, I’m thankful for all help!

Thanks in advance!

Regards,
Erik

Hi @Envelope

When I inspected the code, I did see the GTM script code in the Norwegian version. Please check the image below.

So it seems that the problem may be because of the URL. For examples:

You can notice that it changes from .com to .no when you switch the language. In another word, they are actually different URLs.

To resolve this, in GA 4, you can create another data stream for the URL https://envelope1976.no/

If you don’t want to have 2 data streams, in GTM, go to your GA4 configuration tag. Then set the triggering with 2 triggers of Page View. One with Page URL contains envelop1967.com and one with Page URL contains envelop1967.no

Remember to publish your GTM after making changes.

Hope this can resolve your problem.

Best,