- 1 Minute to read
- DarkLight
Content Identification
- 1 Minute to read
- DarkLight
Syndi requires a website ID and a page ID (the unique identifier for the page or content) in order to publish content to a given page.
The preferred method of content identification is to place the page ID within the HTML element being used for inline or hero content.
Skip to Enhanced Content Types if you are able to place the page ID within the HTML element.
If you cannot leverage the HTML element, an alternative method to setting the page ID is to push it into Syndi. To push the page ID replace the parameter (12345 in the example below) with a macro to dynamically inject the ID. This will set the ID in the javascript context and fetch the relevant content from our service.
Content Identification API
<script type="text/javascript">
window.SYNDI = window.SYNDI || [];
SYNDI.push('12345'); //replace with your own page identifier. remove single quotes if using a variable.
</script>
If using a Tag Manager then paste this snippet below the SyndiTag and replace '12345' with the appropriate dynamic variable from your Tag Manager data layer.
If you cannot support this push method, we can configure your SyndiTag to dynamically capture a page ID from either the URL or an object on the page. This is not preferred as the fidelity of the integration will be dependent on your website not evolving.
Please let your Syndigo Account Manager know if you prefer us to scrape the ID and provide the specific location where we can find the page ID.