xyNNN / GoogleTagManagerBundle

Google Tag Manager Bundle for Symfony 2
https://github.com/xyNNN/GoogleTagManagerBundle
GNU Lesser General Public License v3.0
27 stars 15 forks source link

Add push methods (which output before closing body tag) #23

Closed stefandoorn closed 7 years ago

stefandoorn commented 7 years ago

I think this makes a 2.3 release. (Added it in changelog already).

It adds support to push objects along the road, which get separately outputted before the closing body tag. My use case was that I was adding multiple data points for ecommerce in it, which were conflicting in the dataLayer in the HEAD. Only my transaction had to be there, additional data had to be after loading GTM. Therefore I have added this feature - which gives total control on everything.