Do you want to add remarketing code, tracking code, or other custom code to your Foleon Doc? It might be possible with the Remarketing field.
💡 This feature field is not available to all plans. If you are interested in upgrading your plan to include this functionality, please reach out to your Customer Success Manager or our Support team.
In this article
What is the Remarketing field?
The Remarketing feature enables you to inject tracking codes, remarketing codes, or other custom code (Javascript, CSS and more) to your live Foleon Doc. To be more precise, it will insert your code in the ‘head’ section of your Foleon Doc.
There is a wide array of possibilities, allowing you to implement anything from chat widgets to tracking software.
⚠️ The Remarketing field creates many possibilities. However, with great power comes great responsibility. Any custom code implemented is the responsibility of the creator. This also means that Foleon (and our Support team) can't assist with custom scripts added to the remarketing field.
Adding custom code to this field might cause issues for your content: it can break the navigation of the Foleon Doc, cause security issues for the reader or even break specific features. For that reason, any custom code that has been implemented is the responsibility of the creator. Although this feature is easy to use, make sure you know your custom code inside out. If you're not very experienced with coding, we don't recommend using this feature.
How to use the Remarketing field
You can add your custom code in the Doc settings, when you scroll down to the Global Doc settings tab. You can copy-paste the script that your tool provides in the remarketing code field. You will need to build the script for these tracking codes using your different tools.
With the Global Doc settings, you can preconfigure custom code in the remarketing field for all new content. Every new Foleon Doc will then start with these settings, whether you start a Doc from scratch or from a template.
⚠️ Please note that your custom code won't be active in the preview version of your Foleon Doc, only on the live version. After adding a script to the remarketing field, you will have to publish or republish your content to activate the code.
CSS and Javascript are the main programming languages supported in the remarketing field. Custom code will be used for front-end functionality.
These codes can override what is written in the Doc’s base codes, in addition to extending or adding new functions or interactivity.
Once you republish the Foleon Doc, our servers will take the original HTML markup, CSS, and Javascript along with the additional custom codes.
One example would be adding a widget, such as a chatbot or a floating window inside the live Doc. The custom code of these examples would be connecting from the external source to our Doc through custom coding.
Current limitations of the Remarketing field
Foleon is a single-page application (SPA). Simply put, this means that scripts placed in the Remarketing field will only fire the first time a page is loaded.
If you want your script to fire on each page, we suggest using Google Tag Manager (GTM) to insert your scripts.