Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- 'use strict';
- angular.module('shared.services')
- .service('GoogleTagManagerService', GoogleTagManagerService);
- function GoogleTagManagerService() {
- var dataLayer = window.dataLayer = window.dataLayer || [];
- function push(category, action, label, value, nonInteraction) {
- dataLayer.push({
- event: 'ngTrackEvent',
- attributes: {
- category: category,
- action: action,
- label: label,
- value: value,
- nonInteraction: nonInteraction
- }
- });
- }
- return push;
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement