Skip to main content
Javascript Integration

Add the popup to your website using standard javascript

Team avatar
Written by Team
Updated over a week ago

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

<head>
<!-- Your website head -->
</head>

<body>

<!-- Your website body -->


<!-- Geo popup code script -->

<script>
var geotargetlypopup1527054303942 = document.createElement('script');
geotargetlypopup1527054303942.setAttribute('type','text/javascript');
geotargetlypopup1527054303942.async = 1;
var w = window, d = document, e = d.documentElement, g = d.getElementsByTagName('body')[0], w = w.innerWidth || e.clientWidth || g.clientWidth, h = w.innerHeight|| e.clientHeight|| g.clientHeight;
var geotargetlypopup1527054303942url = '//geotargetly-1a441.appspot.com/geopopup?id=-LDAWs65SGACLfN_PIe5&cw='+w+'&ch='+h;
geotargetlypopup1527054303942.setAttribute('src', geotargetlypopup1527054303942url);
document.getElementsByTagName('head')[0].appendChild(geotargetlypopup1527054303942);
</script>

</body>
Did this answer your question?