1. Knowledge Center
  2. Integration Center

How do I incorporate my own scripts with EX.CO content?

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

Screen Shot 2020-04-12 at 15.34.25

You can only access it once you've published your item, so make sure you do that first!

Step 2: Add tracking pixel name

Screen Shot 2020-04-12 at 15.54.23

You can name it anything you like so you can identify it later

Step 3: Select which event you want to trigger the script

Screen Shot 2020-04-12 at 15.54.39

You can choose between General item events, or events that are specific to experiences you've created in the content, like a quiz. 

Screen Shot 2020-04-12 at 16.57.17

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

Screen Shot 2020-04-12 at 17.12.46
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

Screen Shot 2020-04-12 at 17.12.55

Step 7: Add more, or complete the item

Screen Shot 2020-04-13 at 11.09.14

An example of how the custom code feature looks in practice

Screen Shot 2020-04-30 at 10.49.22

Naming your pixel

Screen Shot 2020-04-30 at 10.54.38

Attaching it to an event

Screen Shot 2020-04-30 at 10.54.43

Pasting the code in

Screen Shot 2020-04-30 at 10.54.48

And how it looks in Facebook after it has received traffic

Screen Shot 2020-04-30 at 10.40.41