Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ceaksan committed Mar 12, 2023
1 parent ed8a5d4 commit 808858c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# README
This code is used for integrating analytics tools such as **Google Analytics 4**, **Google Tag Manager**, and **Facebook Pixel** to a Shopify website. The code sets up event listeners for various events and sends the relevant data to the specified analytics tools.
This code is used for integrating analytics tools such as **Google Analytics**, **Google Tag Manager**, and **Facebook Pixel** to a Shopify website. The code sets up event listeners for various events and sends the relevant data to the specified analytics tools.

## Getting Started
To get started with this code, you need to have the analytics tools' IDs and necessary permissions to access them. Once you have the IDs, you can add them to the analyticsTools object as shown in the code. You can also choose which tools to enable by setting the enabled property to true or false.
To get started with this code, you need to have the analytics tools' IDs and the necessary permissions to access them. Once you have the IDs, you can add them to the analyticsTools object, as shown in the code. You can also choose which tools to enable by setting the enabled property to true or false.

### Usage
The code sets up event listeners for various events such as `collection_viewed`, `page_viewed`, `product_viewed`, `search_submitted`, `product_added_to_cart`, `checkout_started`, `payment_info_submitted`, and `checkout_completed`. When these events occur, the code sends the relevant data to the specified analytics tools using the sendEvent() function defined in the analyticsTools object.
Expand All @@ -25,4 +25,5 @@ For more information on how to create a Google Tag Manager custom pixel or custo
For a list of available customer events, refer to the Customer [Events Reference](https://shopify.dev/docs/api/pixels/customer-events#standard-events).

## Configuration

You can configure the analytics tools by modifying the properties in the analyticsTools object. For example, you can enable or disable a tool by setting the enabled property to true or false. You can also change the ID for a tool or enable/disable debug mode.

0 comments on commit 808858c

Please sign in to comment.