JavaScript-HTML Integration

Add the content to your website using standard JavaScript & HTML

Team avatar
Written by Team
Updated over a week ago

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

The provided JavaScript code needs to be placed in your website just before the closing body tag </body> or in your website footer and the HTML tag is to be placed where the geo content needs to render.
โ€‹

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

<body>

<!-- Other content -->

<!-- Start Geo Content HTML Tag -->
<div class='geotargetlygeocontent1556689537225'>
<!-- Content will render here -->
</div>
<!-- End Geo Content HTML Tag -->

<!-- Other content -->

<!-- Start Geo Content JavaScript code -->
<script>
var geotargetlycontent1556689537225 = document.createElement('script');
geotargetlycontent1556689537225.setAttribute('type','text/javascript');
geotargetlycontent1556689537225.async = 1;
geotargetlycontent1556689537225.setAttribute('src', '//geo-targetly.com/geocontent?id=-LdlvJUen_ti5Lr77GzD');
document.getElementsByTagName('head')[0].appendChild(geotargetlycontent1556689537225);
</script>
<!-- End Geo Content JavaScript code -->

</body>
Did this answer your question?