WIX Integration

Add the content code to your WIX website

Team avatar
Written by Team
Updated over a week ago

Each Geo Content service you create  will come with its own JavaScript code and Geo Content HTML Tag.

These need to be added to your WIX site as a HTML Iframe Embed

Steps:

  1.  Change the 'Website URL' to http://* under the Website settings in the Geo Content setup. This is required for our Geo Content service to work correctly in a WIX Iframe.

2. Go to your WIX editor
3. Click Add on the left side of the Editor.
4. Click More
5. Click HTML iframe, or drag it to the relevant location on your page.
6. Enter both the Geo Content Code & Geo Content HTML Tag as show below:

<div class='geotargetlygeocontent1556689537225'>
<!-- Content will render here -->
</div>

<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>


7. Click Apply

Did this answer your question?