WooCommerce Google Analytics Integration

外掛說明

This plugin provides the integration between Google Analytics and the WooCommerce plugin. You can link a referral to a purchase and add transaction information to your Google Analytics data. It also supports the new Universal Analytics, eCommerce, and enhanced eCommerce event tracking.

Starting WooCommerce 2.1, this integration will no longer be part of WooCommerce and will only be available by using this plugin.

Contributions are welcome via the GitHub repository.

螢幕擷圖

  • Google Analytics Integration Settings.

安裝方式

  1. Download the plugin file to your computer and unzip it
  2. Using an FTP program, or your hosting control panel, upload the unzipped plugin folder to your WordPress installation’s wp-content/plugins/ directory.
  3. Activate the plugin from the Plugins menu within the WordPress admin.
  4. Don’t forget to enable e-commerce tracking in your Google Analytics account: https://support.google.com/analytics/answer/1009612?hl=en

Or use the automatic installation wizard through your admin panel, just search for this plugins name.

常見問題集

Where can I find the setting for this plugin?

This plugin will add the settings to the Integration tab, to be found in the WooCommerce > Settings menu.

I don’t see the code on my site. Where is it?

We purposefully don’t track admin visits to the site. Log out of the site (or open a Google Chrome Incognito window) and check if the site is there for non-admins.

Also please make sure your Google Analytics ID under WooCommerce -> Settings -> Integrations.

My code is there. Why is it still not tracking sales?

Duplicate Google Analytics code causes a conflict in tracking. Remove any other Google Analytics plugin or code from your site to avoid duplication and conflicts in tracking.

Can I install it already?

Starting the WooCommerce 2.1 release, the Google Analytics integration for WooCommerce is no longer part of the WooCommerce plugin.

Until you’ve updated to WooCommerce 2.1, this plugin puts itself in some sort of hibernate mode.

You can leave this plugin activated and it will seamlessly take over the integration that once was in the WooCommerce plugin, once you update to the next version.

My settings are not saving!

Do you have SUHOSIN installed/active on your server? If so, the default index length is 64 and some settings on this plugin requires longer lengths. Try setting your SUHOSIN configuration’s “max_array_index_length” to “100” and test again.

My national data privacy laws require that I offer an opt-out for users, how can I do this?

Include the following html code snippet within the page where you want to have the opt-out, e.g. the your Imprint our Data Privacy page:

You can prevent Google Analytics from tracking you by clicking the following link. An opt-out cookie will be set, which will prevent you being tracked when visiting this website in the future:
<a href="javascript:gaOptout()">Deactivate Google Analytics</a>.

view raw
message.txt
hosted with ❤ by GitHub

Exact wording depends on the national data privacy laws and should be adjusted.

使用者評論

2020 年 10 月 22 日
Doesn't work properly. The tracking of sells works 1/2 time. And I suspect it to give wrong data about everything in fact. I will run for google tag manager and manual work to set this up.
2020 年 10 月 14 日
It breaks the layout on Elementor pages. I didn't get a chance to test if it actually tracked visitors correctly.
2020 年 6 月 9 日
My plugin has been working fine for about a week then, three days ago, it stopped working. No conversions have been tracked since, and the “Settings” page for the plugin is not accessible, it returns a 404 error.
2020 年 5 月 28 日
It does what it’s supposed to do. I have not had any problems with it. It has been installed in multiple sites for over a year without issue.
2020 年 5 月 16 日
I added it to a site using Woocommerce Storefront theme and it didn't even add the Google snippet to the header. But when you log out - it works. Don't check it while logged in as an admin.
2020 年 5 月 3 日
I'd be willing to switch this to a 5 stars if it wasn't for a duplicated transaction showing up in my GA. I can not trust that this plugin won't do that again, and therefore it's not a reliable source of tracking information if its going to inflate my results. Other than that bug, it works exactly as intended.
閱讀全部 81 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WooCommerce Google Analytics Integration〉的開發相關工作。

參與者

WooCommerce Google Analytics Integration 外掛目前已有 8 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將 WooCommerce Google Analytics Integration 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.4.24 – 2020-10-12

  • Tweak – WC 4.5 compatibility.

1.4.23 – 2020-08-19

  • Fix – Prevent transaction from being tracked a second time when page is reloaded locally or from cache.
  • Tweak – WordPress 5.5 compatibility.

1.4.22 – 2020-06-05

  • Tweak – WC 4.2 compatibility.

1.4.21 – 2020-05-04

  • Tweak – WC 4.1 compatibility.

1.4.20 – 2020-03-29

  • Fix – Change wc_goole_analytics_send_pageview fiter name to wc_google_analytics_send_pageview.