Category Archives: Google

Google reCaptcha

.env

Front

Backend

Google Verify API response examples

Reference:

  1. reCAPTCHA v3 Example for PHP
    https://stevencotterill.com/articles/adding-google-recaptcha-v3-to-a-php-form
  2. Official
    https://developers.google.com/recaptcha/docs/v3
  3. Admin Console
    https://www.google.com/recaptcha/admin

在網站中加入動態再行銷代碼

https://support.google.com/google-ads/answer/3103357?hl=zh-Hant

使用符合業務類型的自訂參數

https://support.google.com/google-ads/answer/7305793

設定目標對象來源

https://support.google.com/google-ads/answer/7540515?hl=zh-Hant

全域網站代碼

事件程式碼片段

Tag Manager and gtag.js

https://support.google.com/tagmanager/answer/7582054?hl=en

Google Ads Related Tags in GTM

https://support.google.com/tagmanager/topic/6334091

Example to build datalayer for Google Enhanced Ecommerce

Reference:

Config Pixel Purchase in Google Tag Manager

  1. Install Pixel base
    Add this line to tell Tag Manager this tag is loaded.

    Image 4
  2. Get ready your advanced ecommerce datalayer of google
  3. Create a variable (Custom javascript) called “Transform Total for Pixel” to transform data from datalayer for pixel purchase event
  4. Create a new Tag – Purchase (Custom HTML)
    Image 2
    Image 3
  5. Config trigger (Recommended triggered by event instead of page view)
    Image 5

Reference

Google Analytics Ecommerce tracking via Tag Manager

 

Enhanced ecommerce tracking with tag manager

Image 20

Reference:

  1. Tag Manager for enhanced-ecommerce
  2. https://developers.google.com/tag-manager/enhanced-ecommerce#overview
  3. e-commerce tips for tag manager
    https://www.simoahava.com/analytics/ecommerce-tips-google-tag-manager/
  4. Google Analytics for ecommerce:
    https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce
  5. Unlock the Data Layer: A Non-Developer’s Guide to Google Tag Manager
    https://www.lunametrics.com/blog/2013/10/15/unlock-data-layer-google-tag-manager/
  6. Implementing E-commerce tracking via tag manager:
    https://www.optimizesmart.com/implementing-e-commerce-tracking-google-tag-manager/

Tag Manager + Pixel

Install Google Tag Manager in web

Create Tag for Pixel base code

Create Tags for Pixel built-in events

 

Product Catalog for Pixel

Google Product Category and Product Type

Reference: