angulartics / angulartics-google-tag-manager

34 stars 35 forks source link

Add support for renaming dataLayer variable #26

Open bstoney opened 6 years ago

bstoney commented 6 years ago

In some cases e.g. supporting GTM and Ensighten, there is conflicts in the use of a variable called dataLayer. GTM supports changing the name of the dataLayer variable see https://developers.google.com/tag-manager/devguide#renaming

Is it possible to make the dataLayer variable configurable in angularitics?