How do I integrate google analytics or piwik?

This topic contains 1 reply and 2 voices, and was last updated by towhid 8 years, 6 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
September 14, 2015 at 1:13 am 71667
towhid Hi Dokan Team How can I integrate the script code for google analytics or piwik in the Dokan theme? I guess it has to be placed in the footer file - is it right? Thanks for your help! Regards Fredy
September 17, 2015 at 2:48 pm 72210
towhid towhid

Hello Fredy,

You can integrate google analytics code in a several way.

Few are describes in here:

Paste the code in your theme’s header.php right after the <body> tag.

Or, you can create a function in the theme’s functions.php

add_action('wp_footer', 'add_googleanalytics');
function add_googleanalytics() { ?>
// Paste your Google Analytics code here
}

Please let me know if you able to solve the problem. If you still have any confusion please let me know. I am here to help you.

Thanks

Viewing 1 Posts - 1 through 1 (of 1 total)