neojato/DeLorean-v2

Configurable custom header code

cjwhitsitt opened this issue · 2 comments

In order to do some analytics things, it'd be nice to be able to insert custom code in the page headers.

@cjwhitsitt The issue with having a custom header to inject code has security issues, but I see a value in it.

The other issue is that this is a single-page app (SPA) and things like pageviews won't be tracked unless it is custom coded.

Could you provide an example(s) of what could be placed into a custom code block?

I've switched/upgraded this project to utilize Google Tag Manager instead of hardcoding Google Analytics page/event tracking as part of commit be10726.

This allows site managers to be able to insert custom HTML and/or utilize many of the available Tags all from within the Google Tag Manager interface.

See the step Google Tag Manager Setup on how to configure.