Different GTM Containers per entity on Page Builder

Hi!

Currently working with a client who has a few different GTM containers they use depending on the franchisee who owns that entity. They are using Page Builder. I don’t see an option to change the ‘Header’ element based on what entity a page is for, so I’m wondering if anyone else has come up with a solution for this!

Thanks,

Nick

Hey Nick,

Header injection happens on the template level, so it will not vary per entity. One workaround would be to store the necessary GTM code as a field on each entity and then map the HTML module to that field. This would allow for variable code on the entity level.

If it needs to be injected into the <head>, you would most likely need to add JS to inject it there.

Hope this proves useful,
DJ