Esri 2022
  • Return to all Dev Summit proceedings
function loadScriptSync (src) { var s = document.createElement('script'); s.src = src; s.type = "text/javascript"; s.async = false; // <-- this is important document.getElementsByTagName('head')[0].appendChild(s); console.log('loadScriptSync', src) }
//Process Script With Pardot ID prod/staging switcher. var attendee = data.attendee || {}; console.log('Attendee', attendee); var payload = { pageTitle: document.querySelector("title").textContent, pageName: data.page, pagePath: window.location.pathname, pageType: "registration", domain: window.location.host, authState: "true", attendeeId: attendee.attendeeId, ehash: attendee.email, // pardotID: attendee['1649955274297001sERw'], //1649955274297001sERw <--From Attribute Config //1649955274299001soY2 <--Original locale: "en-us", template: "", language: "en", countryCode: "us" }; window.dataLayer = Object.assign(payload); console.log('Payload', payload); console.log('Data Layer', window.dataLayer); var field = 'spoofingUserId'; var url = window.location.href; if(url.indexOf('?' + field + '=') != -1) { console.log('Spoofing Found after Question Mark - load staging'); //Staging loadScriptSync('https://assets.adobedtm.com/2d251f50426c/6b88a352e092/launch-76ceec7d9412-staging.min.js') } else if(url.indexOf('&' + field + '=') != -1) { console.log('Spoofing Found after And Sign - load staging'); //Staging loadScriptSync('https://assets.adobedtm.com/2d251f50426c/6b88a352e092/launch-76ceec7d9412-staging.min.js') } else { console.log('No Spoofing - load production'); //Production loadScriptSync('https://assets.adobedtm.com/2d251f50426c/6b88a352e092/launch-ffdede120a29.min.js') } setTimeout(function(){ document.querySelectorAll('.rf-tile-title a') .forEach(function(element){ element.addEventListener('click', function(event){ const sessionTileElem = event.target; const title = sessionTileElem.innerHTML console.log('clicked on: ' + title) }) }) },2000)
Esri 2022 Logo

About

  • Event Overview
  • About Esri
  • This is GIS

Resources

  • Esri Renewal Program
  • Esri Training

Connect

  • Facebook - Esri Dev Summit
  • Instragram - Esri Dev Summit
  • Twitter - Esri Dev Summit
  • LinkedIn - Esri

©Esri