This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if template.name == "product" %} | |
{% if product.metafields.ga.wake_up_elon and product.metafields.ga.wake_up_elon != blank %} | |
<script type="text/javascript"> | |
window.gaCustomValues = { | |
'ec:addProduct': { | |
'dimension1': {{ product.metafields.ga.wake_up_elon | json }} | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
... | |
// Step #1 | |
// Load trekkie library and initialize all third-party trackers | |
trekkie.load( | |
{ | |
"Trekkie": { ... }, | |
"Session Attribution":{}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!hasLoggedConversion(token)) { | |
setCookieIfConversion(token); | |
window.ShopifyAnalytics.lib.track( | |
"Viewed Product", | |
{ | |
"currency":"EUR", | |
"variantId":34686330142853, | |
"productId":5202279170181, | |
"productGid":"gid:\/\/shopify\/Product\/5202279170181", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(t.prototype.viewedProductEnhanced = function (e) { | |
var t = e.properties; | |
this.loadEnhancedEcommerce(e); | |
/* ^^^^^ Function's definition: | |
(t.prototype.loadEnhancedEcommerce = function (e) { | |
this.enhancedEcommerceLoaded || (window.ga("require", "ec"), | |
(this.enhancedEcommerceLoaded = !0)); | |
var t = e.properties; | |
window.ga("set", "&cu", this.getCurrency(t.currency)); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(t.prototype.initialize = function (e) { | |
(this.pageCalled = !1), this.loadGAScript(); | |
var n = this.options; | |
"localhost" === c.hostname() && (n.domain = "none"), | |
n.enhancedEcommerce && this.enhancedEcommerce(), | |
window.ga("create", n.trackingId, { cookieDomain: n.domain || t.defaultOptions.domain, siteSpeedSampleRate: n.siteSpeedSampleRate, sampleRate: n.sampleRate, allowLinker: !0 }), | |
n.doubleClick && window.ga("require", "displayfeatures"), | |
n.enhancedLinkAttribution && window.ga("require", "linkid"), | |
n.anonymizeIp && window.ga("set", "anonymizeIp", !0), | |
e(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(t.prototype.setWindowGa = function () { | |
(window.ga && "function" == typeof window.ga) || | |
(window.ga = function () { | |
(window.ga.q = window.ga.q || []).push(arguments); | |
}); | |
}), | |
(t.prototype.loadGAScript = function () { | |
(window.GoogleAnalyticsObject = "ga"), this.setWindowGa(), (window.ga.l = new Date().getTime()); | |
var e = s.virtualDocument().createElement("script"); | |
(e.async = !0), (e.src = "https://www.google-analytics.com/analytics.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './vue-section-quotes.scss'; | |
import Vue from 'vue'; | |
import Quotes from './quotes.vue'; | |
const { h } = Vue; // in Vue 3.x 'h' function is globaly imported | |
export class QuotesApp { | |
constructor(id, data) { | |
this._sectionId = id; | |
this._appType = 'vue-quotes'; | |
this._appInstance = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!(function () { | |
var e = function (e) { | |
var t = { exports: {} }; | |
return e.call(t.exports, t, t.exports), t.exports; | |
}, | |
s = (function () { | |
function r(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var r = t[n]; | |
(r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!(function () { | |
"use strict"; | |
var e = { | |
693: function (e, t, n) { | |
var r, | |
o = | |
(this && this.__extends) || | |
((r = function (e, t) { | |
return (r = | |
Object.setPrototypeOf || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(n = XMLHttpRequest), | |
(r = n.prototype.open), | |
(a = n.prototype.send), | |
(n.prototype.open = function (e, t) { | |
(this._url = t), (this._method = e), o.handleXhrOpen(), r.apply(this, arguments); | |
}), | |
(n.prototype.send = function (e) { | |
var t = new o(this, this._url, this._method, e); | |
this.addEventListener ? this.addEventListener("readystatechange", | |
t.onReadyStateChange.bind(t), !1) : ((t.oldOnReadyStateChange = this.onreadystatechange), |
NewerOlder