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 Global Site Tag, Universal Analytics, eCommerce, and enhanced eCommerce event tracking.

Starting from WooCommerce 2.1, this integration is not packaged with WooCommerce and is only 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 plugin’s name.

FAQ

Where can I find the setting for this plugin?

This plugin will add the settings to the Integration tab, 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 code is there for non-admins.

Also please make sure to enter 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 plugins or code from your site to avoid duplication and conflicts in tracking.

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.

후기

2023년 7월 17일 1 reply
This is the easiest (and free) way i have come across to integrate your woocommerce store with the new GA4. I'm able to see my conversions and related data in GA4
2023년 3월 10일 1 reply
The support forum is full of people complaining that page views are not sent correctly using GA4 - which everyone will be using seeing as universal is now being imminently retired. The only advice given by plugin devs is to disable "add to cart" events, or modify the plugin code directly to fix their fault plugin logic. This issue has been around for 2 years.
2022년 11월 21일 1 reply
This is the most easiest setup for Google Analytics ever. All it asks for your ID, and it will show up everything on your Google Analytics! On your Global Site Tag, Universal Analytics, eCommerce, and more! No any kind of snippet or codes!
모든 95 평가 읽기

기여자 & 개발자

“WooCommerce Google Analytics Integration”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“WooCommerce Google Analytics Integration”(이)가 12(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “WooCommerce Google Analytics Integration”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.8.10 – 2023-11-28

  • Dev – Update phpunit polyfills to 1.1 for WP 6.4.
  • Fix – Add semicolon after gtag calls.
  • Fix – Prevent firing up the add_to_cart event when clicking in product image.
  • Tweak – Test environment setup to resolve notice.

1.8.9 – 2023-11-07

  • Tweak – WC 8.3 compatibility.
  • Tweak – WP 6.4 compatibility.
  • Update – Use new Woo.com domain.
  • Update – WordPressCS to version 3.0.

1.8.8 – 2023-10-24

  • Tweak – Declare cart_checkout_blocks feature compatibility.

See changelog for all versions.