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.

Type:
Status: In Progress
jharrisiii
View Replies:
c5mix replied on at Permalink Reply
c5mix
If you want to add it to the <head> section just add it to this page in the dashboard:
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.
jharrisiii replied on at Permalink Reply
jharrisiii
Got it. Thanks.
c5mix replied on at Permalink Reply
c5mix
You're welcome!

concrete5 Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
Slate Theme (1.5.3.1).

# concrete5 Overrides
js/jquery.cycle2.min.js, js/bootstrap.min.js, js/jquery.tinycircleslider.min.js, js/jquery.cycle2.js.map, js/main.js, js/jquery.mixitup.min.js, js/gmaps.min.js, js/jquery.mCustomScrollbar.concat.min.js, js/bootstrap.js, js/easyResponsiveTabs.js, js/HeadImage.js, js/jquery.min.js, js/jquery.browser.min.js, js/easyResponsiveTabs.min.js, js/jquery.prettyPhoto.js, css/font-awesome.css, css/font-awesome.min.css, css/animate.min.css, css/animate.css, css/easy-responsive-tabs.css, css/colors, css/main.css, css/bootstrap.min.css, css/bootstrap.css, css/prettyPhoto.css, css/jquery.mCustomScrollbar.css, languages/it_IT, languages/vi_VN, languages/es_PE, languages/ro_RO, languages/ja_JP, languages/ar, languages/nb_NO, languages/tr_TR, languages/fr_FR, languages/es_MX, languages/ru_RU, languages/nl_NL, languages/es_AR, languages/cs_CZ, languages/sv_SE, languages/da_DK, languages/sl_SI, languages/el_GR, languages/pt_PT, languages/zh_TW, languages/fa_IR, languages/he_IL, languages/es_ES, languages/sk_SK, languages/zh_CN, languages/fi_FI, languages/de_DE

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.4.34

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, json, ldap, libxml, mbstring, mcrypt, mhash, mysql, mysqli, odbc, openssl, pcntl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, recode, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 50M
sql.safe_mode - Off
upload_max_filesize - 50M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.