Home Forums Theme Support Dokan How do I integrate google analytics or piwik?

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  towhid 3 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #71667

    Fredy
    Member
    Post count: 1

    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

    #72210

    towhid
    Participant
    Post count: 4505

    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 2 posts - 1 through 2 (of 2 total)

The topic ‘How do I integrate google analytics or piwik?’ is closed to new replies.