Viewing 11 replies - 1 through 11 (of 11 total)
  • hi @pyho

    You have two options in the matomo settings which can help you with:
    Track subdomains in the same website
    and
    Do not count subdomains as outlink

    more information here:
    https://matomo.org/faq/how-to/faq_23654/

    Kind regards

    Mat

    Thread Starter Tibow

    (@pyho)

    Hi thanks for your answer.

    I already checked this 2 boxes in Matomo WordPress plugin settings.
    I also set * in Cross-Origin Resource Sharing in Matomo System settings.

    But the Hubspot subdomain pages still shows as outlinks.

    Any idea ?

    • This reply was modified 2 years, 9 months ago by Tibow.
    • This reply was modified 2 years, 9 months ago by Tibow.
    • This reply was modified 2 years, 9 months ago by Tibow.
    • This reply was modified 2 years, 9 months ago by Tibow.
    Thread Starter Tibow

    (@pyho)

    Up !
    Problem is still here.

    Hubspot pages used as subdomains are counted as Outlinks. No way to count them as Pages visited ?

    Thanks

    Hi @pyho

    You can specify the domain names by adding the instruction
    _paq.push(['setDomains'.
    To do so, switch your tracking code to manual and add in the javascript content:

    
    _paq.push(['setDomains', ['*.dydu.ai']);
    

    Kind regards

    Mat

    Hi @pyho

    any chances you read my previous comment?

    Kind regards

    Mat

    Thread Starter Tibow

    (@pyho)

    Hi @mattmary

    Sorry this still doesn’t work.
    We tried your suggestion and no changes.

    Yesterday we tried adding Matamo’s manuel tracking code to HubSpot footer’s pages. It’s worth. Now the content.dydu.ai isn’t tracking neither as page nor as outlink.

    We’re lost

    • This reply was modified 2 years, 8 months ago by Tibow.
    • This reply was modified 2 years, 8 months ago by Tibow.

    Hi @pyho

    You have an error in your script content. You can see it when opening the developer console of your browser.
    Please fix it and it should work.
    Kind regards

    Mat

    Thread Starter Tibow

    (@pyho)

    Thanks @mattmary I configured the Matomo Plugin as Add tracking code -> Disabled and no more alert in the console for the main domain. I fully control it manually.

    But i’m still trying to make Matomo works with Hubspot pages. It looks like Matomo JS isn’t loaded in Hubspot pages although we put the Matomo tracking code in the Javascript footer section of this page in Hubspot.

    • This reply was modified 2 years, 8 months ago by Tibow.
    • This reply was modified 2 years, 8 months ago by Tibow.
    Thread Starter Tibow

    (@pyho)

    Ok it works.
    So recap of the solution for everybody:

    1/ In WP > Matomo extension Settings: Set ‘Add Tracking Code’ to ‘Default tracking

    2/ In WP > Matomo extension Settings: check the 2 boxes ‘Track subdomains in the same website’ and ‘Do not count ‘subdomains as outlink’

    3/ In WP > Matomo extension Settings: Copy the tracking code

    4/ In WP > Matomo extension Settings: Set ‘Add Tracking COde’ to Disabled

    5/ In footer.php file: Paste the tracking code and change if necessary the code with a * before your domain name in
    _paq.push([“setCookieDomain”, “*.mywebsite.com”]);
    _paq.push([“setDomains”, [“*.mywebsite.com”]])
    Then your main domain pages should be correctly tracked by Matomo. Check it with the browser Console.

    6/ In your Hubspot account: find the page models you want to track and add the same Matomo tracking code in the JavaScript Footer section of this pages.
    When done, once again check with the browser console because you should see the matomo.js loaded in the script.

    7/ That’s it ! (sorry for my approximate English) You should now see the subdomain pages tracked as pages in the Real Time Tracking of the Matomo Dashboard

    • This reply was modified 2 years, 8 months ago by Tibow.
    • This reply was modified 2 years, 8 months ago by Tibow.
    • This reply was modified 2 years, 8 months ago by Tibow.

    Hi @pyho

    great!
    Can you flagged this topic as resolved?
    Regards

    Mat

    Thread Starter Tibow

    (@pyho)

    Hi ok done!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Matomo tracking and Hubspot pages as subdomain’ is closed to new replies.