Elegant has support for popular web tracking service, StatCounter.

You need two codes from StatCounter - project ID and security code.

Create a project inside StatCounter. Click on Config, Reinstall Code and then Default Guide.

It will show you a standard code that a website must have in order to use StatCounter.

<!-- Start of StatCounter Code for Default Guide -->
<script type="text/javascript">
var sc_project=5555555;
var sc_invisible=1;
var sc_security="XXXXXXXX";
...
<!-- End of StatCounter Code for Default Guide -->

Assign sc_project value to STAT_COUNTER_PROJECT and sc_security to STAT_COUNTER_SECURITY.

STAT_COUNTER_PROJECT = 5555555
STAT_COUNTER_SECURITY = u'XXXXXXXX'

That’s it. Elegant will take care of the rest.

Like this post? Share on: TwitterFacebookEmail


Talha Mansoor Avatar Talha Mansoor is the creator and lead developer of Elegant theme.

Keep Reading


Published

Last Updated

Category

Analytics

Tags

Stay in Touch

Get Monthly Updates