I have been using GTM with GA4 for a few weeks now without much issue to track various metrics on my companies website. I have had GTM and GA4 working in the past locally, in our dev environment, and within our prod environment. After pushing updates from dev to prod, GTM has broken and will not connect to the prod website. The only error that I get is a 404 that GTM could not load. The same code is working locally, as well as on the dev site, this error only occurs on prod. I know my GTM is published, but I don't know why it has broken our prod site. I can't find many related answers that don't just say "publish your tag manager".
I have checked and rechecked the dev and local sites. I have checked that GTM is published. It is only within prod that I get the 404 error while connecting to googletagmanager.com.
yes, usually you get a 404 when the container is not published.
In your case, however, it may be something like forgetting to include the GTM script in your CSP.
Make sure you have the correct GTM id in your code.
Related
When I visit my website in the GTM Preview mode and complete the conversions, they will show up on the GA4 Debug tool and after 24 hours, they will also appear in the reports but none of the visits or conversions I do outside of the Preview mode come through in my GA4 reports or in the debug tool.
The problem here was that the GTM container has not been published.
When you're working on changes in your GTM container, the changes are in "Limbo" and can only be tested through the preview option. Once your previews show that everything works as intended, you're supposed to publish the changes to appropriate environment (in vast majority of cases, to the live environment).
Only after publishing your changes to the live environment will you see them reflected in production.
I want to implement the LinkedIn Autofill into my staging website to test the autofill feature into the website form.
I have created LinkedIn Insight tag and implement into my staging website and follow the instruction guide https://www.linkedin.com/help/lms/answer/a424393/linkedin-autofill-setup-guide?lang=en, the autofill button didn't show out.
In the LinkedIn Campaign Manager, Website Tracking page did show the Tag Domain implement successful with my staging domain listed there.
On my staging site, I use chrome inspection tools and the console show the following error message without any further details
Failed to load resource: the server responded with a status of 400 ()
Any suggestion how to implement it?
#linkedin
Please try it in your production instead of staging.
We faced a similar error in our staging site where the Linked in Autofill button didn't show up and a 400 error code for https://www.linkedin.com/autofill/ in the console. The reason was the issues with whitelisting. Though the linked in representative confirmed that our staging site has been whitelisted, it still didn't work. They suggested us to take it to production and check. It was actually working in Production as expected. Please try it in your production instead of staging.
Adding the steps that we followed:
Add linked in Insight Tag to your website. Please follow the steps here
Add the autofill script to the html page where you want the button to be displayed. Note: If you are using a CMS, where this autofill plugin is being added to modules and re-used across your websites, make sure the script is added inside a proper html structure.
Html code snippet
Check if the Insight tag is working properly by opening the network tab and check for the insight tag link. Please refer the link
Whitelist your website domains by contacting the Linked In rep.
If you get a 400 error for https://www.linkedin.com/autofill/ in your staging site, try it in your production url after it has been whitelisted.
I have a site that the Tag Assistant extension shows is loading GTM, but not our Universal Analytics code. What is strange about this is, this site has the same URL structure as all of our other sites. I exported a known working container and imported into this site, changing only the Universal Analytics variable, and it still doesn't work.
Even stranger. When I open preview mode from GTM, it shows everything firing as it should: Universal Analytics and Data Layers. We offer a cookie-cutter white-label solution in our industry and this same setup works for all other customers.
I've published again. I've wiped out the container and rebuilt it.
Any ideas about what to look for?
About a month ago, we had a Wordpress site that went down due to a billing issue with hosting. They had to restore via backup. Since then there has been no Paid Traffic showing in our Analytics, although UA is tracking. We get most of our traffic via Adwords. I have tried everything I can think of and still can't get it to work! Some details:
We use Tag Manager (there were no edits in there prior to this event)
The only edit to the site was made when we switched from Tag Manager to straight UA script (post event), which didn't work either so we switched it back
Yes, the Analytics and Adwords accounts are linked properly
We tried adding UTM strings to the destination URLs
We tried turning off auto-tagging in Adwords
We tried turning off auto-tagging and then adding UTM
We tried setting up a brand new Analytics account
Finally, we moved the site onto a different host
NOTHING has worked. I have checked everything I can check. Is it a code issue?? Any ideas would be appreciated.
Here's the site: www.advancedwaterrestoration.com
Try Google Tag Assistant - https://get.google.com/tagassistant/ You can use this tool to watch your tags and see if they fire properly, and what data they send.
So let me rephrase and give a bit more detail. So basically I have a single site but I run the site in a production and UAT environment, separately. The production website uses Google Analytics and the UAT does not and my current development workflow is dev -> uat -> production. I do not want the analytics to be active for UAT, so I have a choice of either removing the script tags when the site is moved from uat to production or to build logic that will render the scripts when the Google Analytics is required.
I don’t understand your request, but if you are going to install the tracking code Past all your tags to the production website. You can use manual tagging or Google Tag Manager.