I think the final Pipedrive download. Walmart Supplier was updated as well.
This commit is contained in:
@ -1,70 +1,24 @@
|
||||
<script
|
||||
src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"
|
||||
data-document-language="true"
|
||||
type="text/javascript"
|
||||
charset="UTF-8"
|
||||
data-domain-script="c938af5b-8612-421f-8d15-740c329a09bc{% if current_school.properties.sandbox %}-test{% endif %}"></script>
|
||||
|
||||
<script
|
||||
src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"
|
||||
type="text/javascript"
|
||||
charset="UTF-8"
|
||||
data-domain-language="true"
|
||||
data-domain-script="c938af5b-8612-421f-8d15-740c329a09bc{% if current_school.properties.sandbox %}-test{% endif %}"></script>
|
||||
<script type="text/javascript">
|
||||
!(function () {
|
||||
var analytics = (window.analytics = window.analytics || []);
|
||||
if (!analytics.initialize)
|
||||
if (analytics.invoked)
|
||||
window.console &&
|
||||
console.error &&
|
||||
console.error("Segment snippet included twice.");
|
||||
else {
|
||||
analytics.invoked = !0;
|
||||
analytics.methods = [
|
||||
"trackSubmit",
|
||||
"trackClick",
|
||||
"trackLink",
|
||||
"trackForm",
|
||||
"pageview",
|
||||
"identify",
|
||||
"reset",
|
||||
"group",
|
||||
"track",
|
||||
"ready",
|
||||
"alias",
|
||||
"debug",
|
||||
"page",
|
||||
"once",
|
||||
"off",
|
||||
"on",
|
||||
"addSourceMiddleware",
|
||||
"addIntegrationMiddleware",
|
||||
"setAnonymousId",
|
||||
"addDestinationMiddleware",
|
||||
];
|
||||
analytics.factory = function (e) {
|
||||
return function () {
|
||||
var t = Array.prototype.slice.call(arguments);
|
||||
t.unshift(e);
|
||||
analytics.push(t);
|
||||
return analytics;
|
||||
};
|
||||
};
|
||||
for (var e = 0; e < analytics.methods.length; e++) {
|
||||
var key = analytics.methods[e];
|
||||
analytics[key] = analytics.factory(key);
|
||||
}
|
||||
analytics.load = function (key, e) {
|
||||
var t = document.createElement("script");
|
||||
t.type = "text/javascript";
|
||||
t.async = !0;
|
||||
t.src =
|
||||
"https://cdn.segment.com/analytics.js/v1/" +
|
||||
key +
|
||||
"/analytics.min.js";
|
||||
var n = document.getElementsByTagName("script")[0];
|
||||
n.parentNode.insertBefore(t, n);
|
||||
analytics._loadOptions = e;
|
||||
};
|
||||
analytics._writeKey = "Toe2jCBJvPgwWBT0GvOylUgge4ZHeEyc"; //this will change between PROD and PPR versions. Not final key.
|
||||
analytics.SNIPPET_VERSION = "4.15.3";
|
||||
}
|
||||
})();
|
||||
!function(){var i="analytics",analytics=window[i]=window[i]||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window[i].initialized)return window[i][e].apply(window[i],arguments);var n=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){var c=document.querySelector("link[rel='canonical']");n.push({__t:"bpc",c:c&&c.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}n.unshift(e);analytics.push(n);return analytics}};for(var n=0;n<analytics.methods.length;n++){var key=analytics.methods[n];analytics[key]=analytics.factory(key)}analytics.load=function(key,n){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.setAttribute("data-global-segment-analytics-key",i);t.src="https://cdn-segment.pipedrive.com/analytics.js/v1/" + key + "/analytics.min.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r);analytics._loadOptions=n};analytics._writeKey={% if current_school.properties.sandbox %}"cmgpJlGksHfgGGINH2nFMKIrkLzUrHEk"{% else %}"Toe2jCBJvPgwWBT0GvOylUgge4ZHeEyc"{% endif %};;analytics.SNIPPET_VERSION="5.2.0";
|
||||
analytics._writeKey = {% if current_school.properties.sandbox %}"cmgpJlGksHfgGGINH2nFMKIrkLzUrHEk"{% else %}"Toe2jCBJvPgwWBT0GvOylUgge4ZHeEyc"{% endif %};;
|
||||
}}();
|
||||
|
||||
|
||||
const consent_middleware = function({payload, next, integration}) {
|
||||
const payloadObject = payload.obj.properties || payload.obj.traits;
|
||||
if (payloadObject) {
|
||||
payloadObject.consent_id = OneTrust.getDataSubjectId();
|
||||
payloadObject.cookie_policy_v2 = OnetrustActiveGroups
|
||||
}
|
||||
|
||||
next(payload);
|
||||
};
|
||||
|
||||
var gtm_middleware = function({payload, next, integration}) {
|
||||
if (payload.obj.messageId) {
|
||||
@ -72,11 +26,11 @@
|
||||
}
|
||||
next(payload);
|
||||
};
|
||||
|
||||
window.analytics.addSourceMiddleware(consent_middleware);
|
||||
window.analytics.addDestinationMiddleware('Google Tag Manager',[gtm_middleware]);
|
||||
</script>
|
||||
|
||||
<script>
|
||||
<script type="text/javascript">
|
||||
// Read Google Analytics cookie values and format them
|
||||
function getCookie(name) {
|
||||
const match = document.cookie.match(new RegExp(`(^| )${name}=([^;]+)`));
|
||||
@ -143,9 +97,65 @@
|
||||
);
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function OptanonWrapper() {
|
||||
(function loadSegmentTemplate() {
|
||||
function createPdReferrerCookie() {
|
||||
!function() {
|
||||
function e(e) {
|
||||
var c = document.cookie.match(new RegExp("(^| )".concat(e, "=([^;]+)")));
|
||||
return Array.isArray(c) && 1 < c.length ? c[2] : ""
|
||||
}
|
||||
var c = "pd_referrer_session";
|
||||
if ("" === e(c)) {
|
||||
var t;
|
||||
try {
|
||||
t = window.location.hostname.split(".").slice(-2).join(".")
|
||||
} catch (e) {
|
||||
t = "pipedrive.com"
|
||||
}
|
||||
var n, o = "pd_referrer";
|
||||
try {
|
||||
n = JSON.parse(decodeURIComponent(e(o))),
|
||||
Array.isArray(n) || (n = [])
|
||||
} catch (e) {
|
||||
n = []
|
||||
}
|
||||
7 < n.length && (n.length = 7);
|
||||
var a = null;
|
||||
try {
|
||||
document.referrer.split("/")[2].split(":")[0].split(".").slice(-2).join(".").slice(-t.length) !== t && (a = document.referrer)
|
||||
} catch (e) {
|
||||
a = null
|
||||
}
|
||||
var r, i, s, l, u, d, h, p = document.location.href;
|
||||
"1" === e("has_account") && (p = "".concat(p).concat(-1 === document.location.href.indexOf("?") ? "?" : "&", "hasaccount=1")),
|
||||
n.push({
|
||||
referrer_url: a,
|
||||
landing_url: p,
|
||||
ts: (r = new Date,
|
||||
i = r.getUTCFullYear(),
|
||||
s = "00".concat(r.getUTCMonth() + 1).slice(-2),
|
||||
l = "00".concat(r.getUTCDate()).slice(-2),
|
||||
u = "00".concat(r.getUTCHours()).slice(-2),
|
||||
d = "00".concat(r.getUTCMinutes()).slice(-2),
|
||||
h = "00".concat(r.getUTCSeconds()).slice(-2),
|
||||
"".concat(i, "-").concat(s, "-").concat(l, " ").concat(u, ":").concat(d, ":").concat(h))
|
||||
});
|
||||
var g = new Date
|
||||
, m = new Date;
|
||||
g.setDate(g.getDate() + 365),
|
||||
m.setMinutes(m.getMinutes() + 30);
|
||||
var f = "".concat(o, "=").concat(encodeURIComponent(JSON.stringify(n)), "; ") + "path=/; domain=".concat(t, "; max-age=31536000; expires=").concat(g)
|
||||
, v = "".concat(c, "=1; path=/; domain=").concat(t, "; max-age=31536000; expires=").concat(m);
|
||||
document.cookie = f,
|
||||
document.cookie = v
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function loadSegmentTemplate() {
|
||||
if (typeof window.analytics.load !== "function") {
|
||||
return;
|
||||
}
|
||||
@ -154,209 +164,54 @@
|
||||
return;
|
||||
}
|
||||
//write key within load call also would need updated.
|
||||
window.analytics.load("Toe2jCBJvPgwWBT0GvOylUgge4ZHeEyc", {
|
||||
window.analytics.load({% if current_school.properties.sandbox %}"cmgpJlGksHfgGGINH2nFMKIrkLzUrHEk"{% else %}"Toe2jCBJvPgwWBT0GvOylUgge4ZHeEyc"{% endif %},
|
||||
{
|
||||
obfuscate:true,
|
||||
integrations: {
|
||||
// Performance
|
||||
"Segment.io": {
|
||||
deliveryStrategy: {
|
||||
strategy: "batching",
|
||||
config: {
|
||||
size: 10,
|
||||
timeout: 5000
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Google Tag Manager": groups.includes("C0002")
|
||||
},
|
||||
});
|
||||
{% if current_person.signed_in? %}
|
||||
{% if current_school.sso_active? %}
|
||||
var email = '{{ current_person.email }}' || null
|
||||
var user_id = '{{ current_person.id }}' || null
|
||||
var sso_uid = '{{ current_person.sso_uid }}' || null
|
||||
{% else %}
|
||||
var email = '{{ current_person.email }}' || null
|
||||
var user_id = '{{ current_person.id }}' || null
|
||||
var sso_uid = null
|
||||
{% endif %}
|
||||
{% else %}
|
||||
var email = null
|
||||
var user_id = null
|
||||
var sso_uid = null
|
||||
{% endif %}
|
||||
});
|
||||
{% if current_person.signed_in? %}
|
||||
{% if current_school.sso_active? %}
|
||||
var email = '{{ current_person.email }}' || null
|
||||
var user_id = '{{ current_person.id }}' || null
|
||||
var sso_uid = '{{ current_person.sso_uid }}' || null
|
||||
{% else %}
|
||||
var email = '{{ current_person.email }}' || null
|
||||
var user_id = '{{ current_person.id }}' || null
|
||||
var sso_uid = null
|
||||
{% endif %}
|
||||
analytics.identify({
|
||||
"northpass_email": email ,
|
||||
"northpass_identifier": user_id,
|
||||
{% if current_school.sso_active? %}
|
||||
"pd_sso": sso_uid
|
||||
{% endif %}
|
||||
});
|
||||
{% endif %}
|
||||
|
||||
analytics.page(document.title, getAnalyticsValues());
|
||||
}
|
||||
</script>
|
||||
|
||||
analytics.identify({
|
||||
"traits":{
|
||||
"northpass_email": email ,
|
||||
"northpass_identifier": user_id,
|
||||
"pd_sso" : sso_uid
|
||||
},
|
||||
});
|
||||
analytics.page(document.title, getAnalyticsValues());
|
||||
})();
|
||||
<script type="text/javascript">
|
||||
function OptanonWrapper() {
|
||||
loadSegmentTemplate();
|
||||
createPdReferrerCookie();
|
||||
}
|
||||
</script>
|
||||
|
||||
{% comment %}
|
||||
<style>
|
||||
#onetrust-consent-sdk *:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
#onetrust-banner-sdk .banner_logo {
|
||||
background-image: url("https://s3.amazonaws.com/static.northpass.com/pipedrive/cookie.svg");
|
||||
height: 158px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
display: block !important;
|
||||
}
|
||||
#onetrust-policy-text {
|
||||
margin-top: 40px !important;
|
||||
color: var(--black-digital) !important;
|
||||
font-size: 18px !important;
|
||||
line-height: 30px !important;
|
||||
}
|
||||
#onetrust-button-group-parent {
|
||||
margin-top: 15px !important;
|
||||
}
|
||||
/* button-2 */
|
||||
#onetrust-pc-btn-handler, .save-preference-btn-handler {
|
||||
background: #E1E1FF !important;
|
||||
color: #413D99 !important;
|
||||
border: none !important;
|
||||
padding: 10px 20px !important;
|
||||
font-size: 18px !important;
|
||||
line-height: 21px !important;
|
||||
font-weight: 700 !important;
|
||||
border-radius: 4px !important;
|
||||
text-align: center !important;
|
||||
cursor: pointer !important;
|
||||
text-decoration: none !important;
|
||||
width: fit-content !important;
|
||||
}
|
||||
#onetrust-pc-btn-handler:hover, .save-preference-btn-handler:hover {
|
||||
background: #C4C2FF !important;
|
||||
color: #413D99 !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
/* button-1 */
|
||||
#onetrust-accept-btn-handler, #accept-recommended-btn-handler {
|
||||
background: var(--purple) !important;
|
||||
color: #FFF !important;
|
||||
border: none !important;
|
||||
padding: 10px 20px !important;
|
||||
font-size: 18px !important;
|
||||
line-height: 21px !important;
|
||||
font-weight: 700 !important;
|
||||
border-radius: 4px !important;
|
||||
text-align: center !important;
|
||||
width: fit-content !important;
|
||||
cursor: pointer !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
#onetrust-accept-btn-handler:hover, #accept-recommended-btn-handler:hover{
|
||||
background: #413D99 !important;
|
||||
color: white !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
.banner-actions-container {
|
||||
width: fit-content !important;
|
||||
}
|
||||
#onetrust-button-group {
|
||||
display: flex !important;
|
||||
justify-content: space-evenly;
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
#ot-pc-title {
|
||||
font-weight: 700 !important;
|
||||
font-size: 18px !important;
|
||||
line-height: 30px !important;
|
||||
color: var(--black-digital) !important;
|
||||
margin-top: 40px !important;
|
||||
margin-bottom: 18px !important;
|
||||
}
|
||||
#ot-pc-desc {
|
||||
font-size: 14px !important;
|
||||
line-height: 25px !important;
|
||||
color: var(--black-digital) !important;
|
||||
}
|
||||
.privacy-notice-link {
|
||||
color: #0070D6 !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
#ot-category-title {
|
||||
font-weight: 700 !important;
|
||||
font-size: 18px !important;
|
||||
line-height: 30px !important;
|
||||
color: var(--black-digital) !important;
|
||||
}
|
||||
.ot-cat-header {
|
||||
line-height: 25px !important;
|
||||
color: var(--black-digital) !important;
|
||||
margin-top: -8px !important;
|
||||
margin-left: 10px !important;
|
||||
font-size: 16px !important;
|
||||
font-weight: 700 !important;
|
||||
}
|
||||
.ot-switch-nob {
|
||||
background: #DADDE1 !important;
|
||||
height: 23px !important;
|
||||
border: none !important;
|
||||
}
|
||||
#onetrust-pc-sdk .ot-switch-nob::before {
|
||||
bottom: 3px !important;
|
||||
background-color: #FFF !important;
|
||||
height: 17px !important;
|
||||
width: 17px !important;
|
||||
left: 3px !important;
|
||||
}
|
||||
.category-switch-handler:checked ~ .ot-switch .ot-switch-nob {
|
||||
background: var(--green) !important;
|
||||
}
|
||||
.ot-always-active {
|
||||
color: var(--black-digital) !important;
|
||||
font-weight: 400 !important;
|
||||
font-size: 14px !important;
|
||||
}
|
||||
.ot-pc-header {
|
||||
height: 0 !important;
|
||||
position: relative !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
#ot-pc-content {
|
||||
top: 0 !important;
|
||||
}
|
||||
#onetrust-consent-sdk #onetrust-pc-sdk .ot-tgl input:focus + .ot-switch {
|
||||
outline: none !important;
|
||||
}
|
||||
.ot-pc-logo {
|
||||
display: none !important;
|
||||
}
|
||||
.ot-acc-grpcntr.ot-acc-txt {
|
||||
background: none !important;
|
||||
font-size: 16px !important;
|
||||
}
|
||||
.ot-acc-grpdesc.ot-category-desc {
|
||||
color: var(--black-digital) !important;
|
||||
font-size: 16px !important;
|
||||
}
|
||||
.ot-plus-minus {
|
||||
background: #f4f5f6 !important;
|
||||
border-radius: 50% !important;
|
||||
height: 24px !important;
|
||||
width: 24px !important;
|
||||
}
|
||||
.ot-plus-minus > span {
|
||||
display: none !important;
|
||||
}
|
||||
.ot-plus-minus::after {
|
||||
display: block;
|
||||
position: relative;
|
||||
content: '';
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
top: 1px;
|
||||
background: url(https://s3.amazonaws.com/static.northpass.com/pipedrive/cookie-caret.svg) no-repeat center;
|
||||
transition: rotate 0.7s;
|
||||
}
|
||||
button[aria-expanded="true"] ~ .ot-acc-hdr .ot-plus-minus::after {
|
||||
rotate: -180deg;
|
||||
}
|
||||
</style>
|
||||
{% endcomment %}
|
||||
|
||||
{% if current_person.signed_in? and current_school.properties.sandbox == false %}
|
||||
<script>
|
||||
<script type="text/javascript">
|
||||
let permissionCookie = ''
|
||||
function validateCookieProperty() {
|
||||
getCookie('OptanonConsent').split('&').forEach(x => {
|
||||
|
||||
Reference in New Issue
Block a user