If you're using a tag manager, such as Google Tag Manager, check out the article here.
Check out all publish options here.
- <!-- Ethnio Activation Code--> - Just a comment explaining that the code below is the Activation Code. Doesn't actually do anything to your page.
- src="//ethn.io/xxxxx" - the // allows you to place it on a SSL or regular HTTP page without changing the code. It cleverly assigns HTTPS or HTTP dynamically.
- async="true" - This just tells the browser to load everything else before it loads the Ethnio code.
In terms of the overall system, here’s a detailed explanation of the main methods inside Ethnio:
- Ethnio.should_display - Returns true or false. Checks several option before make decision
show or not screener.
- Ethnio.get_cookie - Returns cookie stored by ethnio code
- Ethnio.set_cookie - Set cookie for certain user to know that screener already displayed.
- Ethnio.currently_displayed - Returns true if screener is showing right now
- Ethnio.wheel_of_fortune - Magic function which implements 'Display Interval’
- Ethnio.show - Main point of code for displaying screener / first page of screener
- Ethnio.insertIframe - Prepare iframe for rendering second and third steps of screener