|
49 | 49 | e_timestamp: String(new Date().getTime()), // milliseconds |
50 | 50 | language_code: "en-US", |
51 | 51 | page_author: "Arturo Santiago-Rivera", |
52 | | - page_category: "iframe", |
53 | | - page_name: "Web Analytics Implementation - Internal Page", |
| 52 | + page_category: "internal", |
| 53 | + page_name: "Web Analytics Implementation - iFrame Page", |
54 | 54 | page_title: document.querySelector("title").innerText, |
55 | 55 | }; |
56 | 56 | window.dataLayer = window.dataLayer || []; |
|
80 | 80 | </script> |
81 | 81 | <!--End Google Tag Manager--> |
82 | 82 | <!--Amplitude Script Loader--> |
83 | | - <script src="https://cdn.amplitude.com/libs/analytics-browser-2.11.3-min.js.gz"></script> |
84 | | - <!--End Amplitude Script Loader--> |
| 83 | + <script src="https://cdn.amplitude.com/libs/analytics-browser-2.11.12-min.js.gz"></script> |
| 84 | + <!--END: Amplitude Script Loader--> |
85 | 85 | <!--Mixpanel Script Loader--> |
86 | 86 | <script type="text/javascript"> |
87 | 87 | (function (f, b) { |
|
259 | 259 | }, |
260 | 260 | }); |
261 | 261 | amplitude.add(enrichEventsPlugin()); // amplitude enrich plugin call |
262 | | - amplitude.init(config.AMPLITUDE_KEY, userInit, { |
| 262 | + amplitude.init(insightTool.AMPLITUDE_KEY, userInit, { |
263 | 263 | autocapture: { elementInteractions: false }, |
264 | 264 | }); // amplitude init statement |
265 | 265 |
|
266 | 266 | /* Mixpanel Init */ |
267 | | - mixpanel.init(config.MIXPANEL_KEY); // mixpanel init statement |
| 267 | + mixpanel.init(insightTool.MIXPANEL_KEY); // mixpanel init statement |
268 | 268 | mixpanel.identify(userInit); // mixpanel user identify |
269 | 269 | mixpanel.people.set({ logged_in: false }); // mixpanel user properties |
270 | 270 | mixpanel.register({ |
|
276 | 276 |
|
277 | 277 | /* Heap Analytics Init */ |
278 | 278 | const heapAppId = |
279 | | - tealiumEnv !== "prod" ? config.HEAP_DEV_KEY : config.HEAP_PROD_KEY; |
| 279 | + tealiumEnv !== "prod" |
| 280 | + ? insightTool.HEAP_DEV_KEY |
| 281 | + : insightTool.HEAP_PROD_KEY; |
280 | 282 | heap.load(heapAppId); |
281 | 283 | heap.identify(userInit); |
282 | 284 | heap.addUserProperties({ logged_in: localStorage.logged }); |
283 | 285 | </script> |
284 | 286 | <!-- END Tracking Variables Setup --> |
285 | 287 | <!-- Tracking Plan Loader --> |
286 | | - <script type="text/javascript" src="assets/js/trackingplan.js"></script> |
| 288 | + <script type="text/javascript" src="../assets/js/trackingplan.js"></script> |
287 | 289 | <!-- END: Tracking Plan Loader --> |
288 | 290 | </head> |
289 | 291 |
|
290 | 292 | <body> |
291 | 293 | <!-- utag data object message --> |
292 | 294 | <script type="text/javascript"> |
293 | 295 | const utag_data = { |
294 | | - author_email: "asantiago@arsari.com", |
295 | | - content_group: "Implementation", |
296 | | - content_type: "Playground", |
297 | | - e_timestamp: String(new Date().getTime()), // milliseconds |
298 | | - language_code: "en-US", |
299 | | - page_author: "Arturo Santiago-Rivera", |
300 | | - page_category: "iframe", |
301 | | - page_name: "Web Analytics Implementation - Internal Page", |
302 | | - page_title: document.querySelector("title").innerText, |
| 296 | + ...INIT_PROPERTIES, |
303 | 297 | // user properties |
304 | 298 | custom_user_id: userInit, |
305 | 299 | logged_in: localStorage.logged ?? false, |
|
0 commit comments