GA Dashboard conflict with WooCommerce Google Analytics Pro

QUESTIONS & ANSWERSCategory: WordPressGA Dashboard conflict with WooCommerce Google Analytics Pro
Profile photo of JeffJeff asked 10 months ago

Hey Alin! We use your plugin on every install we create, it’s intuitive & easy to use, well done!
We recently installed WooCommerce Google Analytics Pro on our own site & as soon as we did so, your GA Dashboard plugin keeps falling out of authorization. Is there a fix for this?

Profile photo of Alin MarcuAlin Marcu Staff replied 10 months ago

Unfortunately I had these reports before and since the code of that plugin isn’t opensourced I’m unable to test it and identify the issue. I suspect some sort of conflict, and the only ones able to fix it are the developers of the premium plugin, since my code is opensourced.

Profile photo of JeffJeff replied 10 months ago

I submitted a ticket to Woo but have yet to hear back – cheers for the speedy reply!

Profile photo of JeffJeff replied 10 months ago

Belay that – they replied & I never got the notification. As it happens, they’ve presented a stated workaround, here:
https://github.com/skyverge/wc-plugins-snippets/blob/master/woocommerce-google-analytics-pro/rename-global-function.php

Profile photo of Tobias ConradTobias Conrad replied 2 months ago

@Alin Marcu
Can you please rename global function also in ga-dashboard.
so we have a permanet fix.
That would help a lot.

Here is the changelog: https://dzv365zjfbd8v.cloudfront.net/changelogs/woocommerce-google-analytics-pro/changelog.txt
Do they did is already? or is it an other issue?
* Dev – Global js function renamed to use `ga` instead of `__gaTracker`

Profile photo of Alin MarcuAlin Marcu Staff replied 2 months ago

I’m already using ga!

Profile photo of Tobias ConradTobias Conrad replied 2 months ago

i can sent you the plugin because it is open source under gpl3 too.
to wich email address?

Profile photo of Tobias ConradTobias Conrad replied 2 months ago

done

Profile photo of Tobias ConradTobias Conrad replied 2 months ago

ga issue!:
from the woo tracking plugin:
Additional Settings

JavaScript function name JavaScript function name
__gaTracker
Set the global tracker function name. __gaTracker is deprecated and support for it will be removed in a future version. IMPORTANT: set the function name to ga only after any custom code is updated to use ga.

Profile photo of Tobias ConradTobias Conrad replied 2 months ago

the issue was that the plugin lost authentification after half a day.

Profile photo of Tobias ConradTobias Conrad replied 1 month ago

hi,

i still waiting for a nice solution from your side,
to make ga-dashboard-conflict-with-woocommerce-google-analytics-pro
a conflict of the past. yeah.

best regards from germany
Tobias

Profile photo of Alin MarcuAlin Marcu Staff replied 1 month ago

Hi,

I’ve been trying to test it and figure out the issue. I can replicate it but I’m unable to determine the exact culprit. I couldn’t delay the v5.0 release furthermore, so it’s not fixed yet. I will look further into it and see if I can fix it. The free plugin works fine with GADWP, I’ve tested that too.

Profile photo of Tobias ConradTobias Conrad replied 3 weeks ago

idea. so compare the free version to the premium version and see the difference 😉
i updated the plugin file behind the dropbox link i sent you via email.
so you can test with the latest version.
may you keep an installation with woo ga pro your plugin for testing after 24 hours you see the issue.

3 Answers
Profile photo of Tobias ConradTobias Conrad answered 3 weeks ago

there is still an issue with google analytics pro for woocommerce as the verification of your plugin get invalid after half a day.

Profile photo of Alin MarcuAlin Marcu Staff replied 3 weeks ago

At this moment there is no fix because I’m unable to identify the issue. From the symptoms it seems to be something related to a cronjob they are registering at some point.

Can you ask them if their API Project has access to the Google Analytics Reporting API or only the Management API?

Profile photo of Alin MarcuAlin Marcu Staff answered 1 week ago

Good news,
I’ve found a way to permanently fix the conflict. V5.1 will have the fix and should be ready in a couple of days!
Thank you all for the feedback, is really appreciated.

Profile photo of Alin MarcuAlin Marcu Staff answered 1 week ago

I’ve forgot to give you the link, because is available for testing: https://downloads.wordpress.org/plugin/google-analytics-dashboard-for-wp.zip.

If you’re planning to test it, let me know the results.

Profile photo of JeffJeff replied 1 week ago

Seems to be functioning properly, Alin – thanks for doing this!