Summary
Customize the look, feel, and function of your Content Tracks using custom code. These are snippets of HTML or Javascript code that you can insert into your content tracks.
The process of using external code in your Content Tracks is as follows:
-
Add your custom code to the External Code Library.
-
Use on any Target, Recommend, or Explore Content Track by selecting the code snippets in the Track Settings.
Note
|
You are able to add multiple pieces of code to a single Content Track. |
Navigate to the External Code Library
-
Click on the gear icon at the top right of the page, and select External Code from the drop-down menu.
Add External Code
-
Click Add External Code.
-
Name your external code and enter the code. Click Add External Code to save it to your external code library.
-
Select the external code you just added. The configuration window will open on the right.
-
Click External Code Name to change the name of the code. Click Save.
-
Click Language Descriptions to add and edit descriptions of the code. These descriptions will be visible to your visitors if the external code requires cookie consent. You are able to add descriptions in multiple languages; the description displayed is dependent on the language selected for the content track.
NoteRead this FAQ for more information on PathFactory’s Cookie Consent feature. -
Click the Code Snippet box to edit the external code. After making changes click Save Code.
-
Click Location to change the location of the external code. Click Apply to save.
WarningIf you are using external code in conjunction with an external tag manager the location of the external code can impact the manager’s performance.
For example, Google Tag Manager requires the external code to be as close to the top of the body as possible, so you would select Top Body Tag. -
If you want the code to be globally enabled click the toggle to switch it to On.
NoteIf external code is globally enabled it will be enacted on every content asset in a content track. -
If you want the code to show only when a visitor has opted in to cookie tracking (by clicking Accept in Cookie Consent modal), click the toggle to switch it to On.
NoteIf you are building GDPR compliant content tracks you will need to get visitor consent for any external code that tracks visitors. Read these FAQs for more information on Cookie Consent and GDPR compliance.
Add External Code to Content Tracks
You are able to add your External Code to any Target, Recommend, or Explore Content Track when configuring the track’s Track Settings.
Delete External Code
-
Select the external code you want to delete. The configuration window will appear on the right.
-
Click on the trash bin icon to delete.