Installing Elle with Javascript API support is simple. You just paste a small piece of JavaScript code into your web or mobile-responsive landing pages.
If you choose to use Elle's Javascript API, you must remove any other previous versions of the 'Elle script' and replace them with the installation script below.
Copy the code below and paste it onto every page of your website.
Paste this code as high in the <head> of the page as possible:
<!-- Elle -->
<script>window.elleDataLayer = [{'org_id': 'YOUR_ORGANIZATION_ELLE_ID'}];(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','elleDataLayer','GTM-TGW9FJR');</script>
<!-- End Elle -->
NOTE: Don't forget to change the Organization ID (org_id
). Reach out to Shastic to request your organization's ID.
Lastly, be sure not to specify a vendor_name or vendor_site_id in production as it will cause an error in the tracking engine.
Comments
0 comments
Please sign in to leave a comment.