• Resolved workshop22

    (@workshop22)


    Hello, hopefully someone can help me. I setup a new GA4 property and installed Site Kit on my site. In the dashboard it says that the GA4 snippet is inserted but when inspecting the code, checking in Tag Assistant and testing my site URL in the Installation Instructions for GA4, the Google Tag isn’t detected.

    I’m not sure what I’m doing wrong, I have everything setup in their default settings and this is a fresh install. I’ve also made sure all caching is turned off so I can see real time updates.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter workshop22

    (@workshop22)

    I should add that I’ve tried Resetting the Site Kit and uninstalling and reinstalling the plugin a few times. Everything says it’s connected properly but no code is being generated on the live site.

    • This reply was modified 1 year, 1 month ago by workshop22.
    Thread Starter workshop22

    (@workshop22)

    I found the issue. In my wp-config this was set:
    define( ‘WP_ENVIRONMENT_TYPE’, ‘local’ );

    I changed it to production and now the tags are being generated properly.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @workshop22 Glad you found the cause and great troubleshooting! Please let us know if we can help with anything else.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Site Kit not inserting GA4 Code Snippet’ is closed to new replies.