# Tracking & Analytics

## Google analytics

LayoutHub doesn’t collect any A/B test stats in-app, but uses data collected by your own Google Analytics account instead.

Before you can start gathering data about your store, you need to have a Google account, sign up for analytics tracking, and choose what data you want to track.

{% hint style="info" %}
Learn more How to setup Google analytic here: <https://help.shopify.com/en/manual/reports-and-analytics/google-analytics/google-analytics-setup>
{% endhint %}

After setup Google Analytics, Please contact in the app settings&#x20;

![](/files/-MFYcTGlmIY9orAV51Qi)

## Facebook pixel

You can use the Facebook pixel to track your website visitors' actions. This is called conversion tracking. Tracked conversions appear in the [Facebook Ads Manager](https://www.facebook.com/adsmanager) and the [Facebook Analytics](https://www.facebook.com/analytics) dashboard, where they can be used to analyze the effectiveness of your conversion funnel and to calculate your return on ad investment. You can also use tracked conversions to define [custom audiences](https://developers.facebook.com/docs/facebook-pixel/implementation/custom-audiences) for ad optimization and [dynamic ad](https://developers.facebook.com/docs/facebook-pixel/implementation/dynamic-ads) campaigns. Once you have defined custom audiences, we can use them to identify other Facebook users who are likely to convert and target them with your ads.

{% hint style="info" %}
Learn more How to add Facebook pixel to your store at: <https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/facebook-pixel>
{% endhint %}

#### Add Custom tracking code to button

```
fbq('trackCustom', 'YourEvent');
```

Add your custom tracking event to Facebook pixel input in Link settings

![](/files/-MFYW1BdO35OkQTC-iUp)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://layouthub.gitbook.io/layouthub/user-guides/tracking-and-analytics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
