> For the complete documentation index, see [llms.txt](https://layouthub.gitbook.io/layouthub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://layouthub.gitbook.io/layouthub/user-guides/tracking-and-analytics.md).

# 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;

![](https://1163003613-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LgfWhgsKZsZtv4UlNyu%2F-MFYc34CXTtJRrdA25nB%2F-MFYcTGlmIY9orAV51Qi%2Fimage.png?alt=media\&token=f26cd728-e54d-4e5a-9758-96dc13a63b39)

## 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

![](https://1163003613-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LgfWhgsKZsZtv4UlNyu%2F-MFYTb4MxUdoct1Iijk9%2F-MFYW1BdO35OkQTC-iUp%2Fimage.png?alt=media\&token=c9bc9c78-c08c-4a49-93c9-936324d390f3)
