Tracking Code

To enable analytics, use the following tracking codes.

Page Views

Insert this code snippet on all of your pages just before the closing </head> tag to enable analytics.

Note: This tracking code is an example only. You must to get your customized tracking code!

Server Error (500) Tracking

Add this variable to your 500 template (along with the JavaScript tag above) and a user_server_error event will be recorded instead of a user_page_view event.

Not Found (404) Tracking

Add this variable to your 404 template (along with the JavaScript tag above) and a user_page_not_found event will be recorded instead of a user_page_view event.

User Sign-Out Tracking

Add this variable to your page after a user signs out (along with the JavaScript tag above) and a user_sign_out event will be recorded instead of a user_page_view event.

Note: Dailycred will never automatically sign a user in to their account. This event therefore has no effect on the authentication flow; it is informational only. It is up to your application to set cookie session lengths in a way that is appropriate for your security needs.