Skip to main content

JavaScript

Where third party scripts go, so they survive a theme update.

Javascript

1. Google Analytics​

Google Analytics

Paste here your Google Analytics following code.

Pasting it here rather than into a template file is the point: a script in this field survives a theme update, one edited into header.php does not.

Analytics on an adult site

Google Analytics is allowed on adult sites, Google Ads is not. Plenty of tube owners prefer an analytics tool that is not Google's for that reason alone.

2. Other Scripts​

Other Scripts

Paste here your other script codes (eg popup script).

Everything else that has to run on every page: a popunder from your ad network, a traffic counter, a verification tag that needs to execute rather than sit in the head.

Paste one at a time and load the site after each. A script with a syntax error takes the rest of the page's JavaScript with it, and the symptom is usually the player refusing to start rather than an error you can see.

What you put here runs on phones too. Use Mobile → Code only for code that should run there and nowhere else.