The Custom Code feature is a powerful tool which enables creators to run their own scripts based on reader interaction with their content.
EX.CO interactive experiences are made up of lots of different touch-points, all of which can be used to trigger your own script when they are embedded on your website.
This functionality can be used for
- Social media tracking pixels - create hyper-specific audience segments from the way your readers interact with content like personality quizzes and polls.
- Trigger pop-ups or calls-to-action
- Deliver prizes or discount codes to users who have answered a question correctly.
Step 1: Find the Integration Center in the Creator
You can only access it once you've published your item, so make sure you do that first!
Step 2: Add tracking pixel name
You can name it anything you like so you can identify it later
Step 3: Select which event you want to trigger the script
You can choose between General item events, or events that are specific to experiences you've created in the content, like a quiz.
You can select from either touch-points within the content, or actions like page load or first click.
Step 4: Paste in your custom code
Only use HTML here, anything else will prompt an error message.
Step 6 (optional) - Select which URLs you do or don't want to trigger the code
Step 7: Add more, or complete the item
An example of how the custom code feature looks in practice
Naming your pixel
Attaching it to an event
Pasting the code in
And how it looks in Facebook after it has received traffic