Insert Analytics Code in
Permalink Browser Info Environment
Trying to implement code to detect and track mobile device usage. Where do I find the <body> content to add as below?
Directions are:
---------------------------------------------------------------------------------------------------------------
The JavaScript snippet will work if placed in its entirety at the top of your webpage's <body> tag. However, there are situations when this may not be optimal.
The first script tag can be placed in your <head> tag, to determine device information before your page loads.
If you are using bandwidth detection, it's advisable to place the second script tag at the bottom of your <body> tag. This will prevent any minor latency that may occur from the bandwidth detection. However, if you want to change images or other media based on bandwidth, this script will have to remain at the beginning of your <body> tag.
Directions are:
---------------------------------------------------------------------------------------------------------------
The JavaScript snippet will work if placed in its entirety at the top of your webpage's <body> tag. However, there are situations when this may not be optimal.
The first script tag can be placed in your <head> tag, to determine device information before your page loads.
If you are using bandwidth detection, it's advisable to place the second script tag at the bottom of your <body> tag. This will prevent any minor latency that may occur from the bandwidth detection. However, if you want to change images or other media based on bandwidth, this script will have to remain at the beginning of your <body> tag.
Type: | |
---|---|
Status: | In Progress |
http://www.concrete5.org/documentation/using-concrete5/dashboard/sy...
If you need to place it right inside the <body> tag you'll need to edit the theme's header.php file (located at packages/theme_slate/themes/slate/elements/header.php) to include it there.