Skip to main content

Analytics

Sooooo there is something odd going on. I am not seeing any of the spaces or the portal in any of my analytics accounts. Nothing in Google, AnalyticsWP, of Fathom. Anyone else seeing this? Shahjahan JewelΒ 

Shahjahan Jewel

Your default analytics code will not work. I will write a doc about how you can setup your analytics.

Donald McGuinn

Shahjahan JewelΒ Thank you!

Shahjahan Jewel

Here is the PHP Snippet you can use:

<?php
    add_action('fluent_community/portal_footer', function() {
    ?>
    <!-- add your tag manager code or js code -->
<?php
}, 1000);

If you use Google Analytics please make sure you have browser push state enabled (by default it's enabled in GA4)

Donald McGuinn

Shahjahan JewelΒ Seems to work now!

Aaron Liang

Shahjahan JewelΒ how about Independent Analytics?

Donald McGuinn

Aaron Liang ⭐ if it gives you a snippet to add to your site, you can add it in his code. Thats what i did for the screenshot above.

Aaron Liang

Donald McGuinnΒ thanks for the info. I should’ve looked into it before asking. Don’t have access to computer at the moment

Gabriell Sales

Donald McGuinnΒ Do I have to add in the plugin's PHP?

Donald McGuinn

Gabriell SalesΒ no it goes in the functions.php file of your child theme

Matt Win

how much of this line am i replacing with the GA4 code?