We recommend creating a Generic Tag within Tealium.

Schema App has a JavaScript library that should be loaded as a tag for the Highlighter (templated pages) and the Editor (single pages).

Copy the required script in 'Javascript rendering' under the menu  Integrations > Javascript Deployment - Highlighter + Editor and paste in the tag.  
The  ACCOUNT_ID  can also be found on the same link. 


Example Schema App’s JS Tags:


Highlighter:


<script>window.schema_highlighter={accountId: "Ugozi_Edge_Inc", outputCache: true}</script>

<script async src="https://cdn.schemaapp.com/javascript/highlight.js"></script>



Note 1: The ACCOUNT_ID must exclude http://schemaapp.com/db/


Steps:

  1. First, go to the Tag Marketplace and add the Generic Tag to your profile (how to add a Tag?)

  2. Add the first script tag first ensuring that content is included in the body of the script. 

  3. Add another tag and edit the vendor configuration with the base URL:

    1. Highlighter: https://cdn.schemaapp.com/javascript/highlight.js

  4. Set the Tag to deploy to all publicly facing pages. 

 


Q: Does the script make any additional requests, if so, how many and for what purpose?

A: Yes, the library makes a request to the Schema App CDN to load related data. Highlight avascript retrieves the page template configuration to map and generate schema markup. Additionally, on successfully generating schema markup, it makes a success request to Schema App for analytics purposes.


Q: What are some best practices for tag implementation? 

A: Make sure there are no constraints on the tag. Place in the header to ensure it has a priority load. 


Q: What can we expect in terms of average page load delays when loading the tag/script(s)?

A: We use Amazon CDN, average response time to load scripts or data is typically less than 40 milliseconds


Q. Should we not use the Tealium Integrations Tag? 

Although it can be found from the list of Tealium tags, we recommend creating a Generic Tag until further notice. More information on Tealium Generic Tags can be found within the Tealium Learning Center.


Q. How can I test my Tealium Tag?

You can go to a page where tag is supposed to fire and open the web console (ALT+CONTROL+J | OPTION+COMMAND+J) and enter window.schema_highlighter you should see content similar to the one below. If you are seeing undefined your tag is not firing correctly. You should also be able to see the highlight.js script in 'elements' section of the console, specifically within the head. I