Skip to main content

Javascript Integration

Add the content to your website using a one time javascript code

Chiara avatar
Written by Chiara
Updated over 2 weeks ago

Each Geo Content service you create will come with it's own JavaScript code.

The provided JavaScript code needs to be placed in your website just before the closing body tag </body> or in your website footer.

The code can be found on Step 4 of your setup and looks like this:

<script> (function(g,e,o,t,a,r,ge,tl,y){ s=function(){var def='geotargetlygeocontent1743153898803_default',len=g.getElementsByClassName(def).length; if(len>0){for(i=0;i<len;i++){g.getElementsByClassName(def)[i].style.display='inline';}}}; t=g.getElementsByTagName(e)[0];y=g.createElement(e); y.async=true;y.src='https://g1584674684.co/gc?winurl='+encodeURIComponent(window.location)+'&refurl='+g.referrer+'&id=-OMR3PHbXbb-ed7C2KWw&navigatorlang='+(navigator.language || navigator.userLanguage || ''); t.parentNode.insertBefore(y,t);y.onerror=function(){s()}; })(document,'script'); </script> <noscript><style>.geotargetlygeocontent1743153898803_default{display:inline !important}</style></noscript>

Did this answer your question?