I follow documentation about adding Google Tag Manager into project https://developers.google.com/tag-manager/ios/v5/. I added container folder to my project's target but I am still getting some warnings from GTM to log and it is not possible to track events to Firebase.
GoogleTagManager warning: Can not retrieve container from network. Response: 404 GoogleTagManager warning: Event emitted before runtime was initialized.
What is the proper way to initialize Tag Manager? I use my "containerName" + .json as name of the container file and add them to folder "container".
GTM iOS SDK 7.1.1
Thanks.
Referring to this link, the name of the file should be GTM-XXXXX.json
. When its downloaded, it could be something like GTM-KZ4ZT31_xxxxxx.json
so you just need to get rid of everything after the id
, for example this GTM-KZ4ZT31_xxxxxx
will become GTM-KZ4ZT31.json
.
Also, double check to use the latest container
file generated from the TagManager
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With