What are you trying to accomplish
I want to put a tag on my order confirmation screen but the documentation for the “conversion tracking” does not explain how to do this.
How do I include the SDK JS for something like google tag manager
How do I attribute conversion to specific campaigns?
How do I include my API key?
This is NOT a react or dynamic web app, its just normal HTML/CSS/JS
But I actually think it sounds like in this case the best way would be to set up GTM within your app itself. With 3rd party analytics trackers like GTM, Builder is totally agnostic, which is to say that as long as you have it set up in your app then Builder shouldn’t really interfere or interact with GTM. For setting up Tag Manager, I would recommend looking at Google’s docs: Setup and install Tag Manager - Tag Manager Help
As they will most likely be able to best assist you. Let me know if that answers your question or if we can help further!
In setting up the tag manager I am trying to set up the trackConversions. I cobbled this together and don’t see any errors but I also don’t see anything sent back to Builder.
This script is in my GTM for my non-builder confirmation page.
Hi @Jeff, hmm interesting, do you have a jsbin / codesandbox / anything live/online we can run ourselves to test it out a bit more?
As I mentioned above, I still think it might be best if you are able to include the trackConversion calls within your app, even if outside of Builder pages. Maybe something like what is shown here: Conversion tracking with Builder.io - Builder.io
Let us know if that works for you! And of course if you have a sandbox environment we could check out your exact set up that would help us to debug further
The first <script/> will asynchronously load the Builder WebComponents API, the second adds a callback that will be run when our WebComponents API is all loaded. Inside the callback, we need to set the API key, and then that’s when you will be able to call anything on context.builder (like in this case, the trackConversion() call)