Meta Pixel

Getting started with Meta Pixel and setting it up

Meta Pixel is a JavaScript snippet that can be added to your website to track visitor activity and other important metrics to build marketing and advertising campaigns.

It collects data such as HTTP headers, Pixel ID, Meta cookie, buttons clicked by site visitors, conversion value, and website field names.

Getting started

The Meta Pixel makes conversion tracking, optimization, and re-marketing easier than ever.

Use Cases of Meta Pixel

ConnectionWebMobile

​Device Mode

🚫

Cloud Mode

🚫

🚫

Use Meta pixel to build Lookalike Audiences

A Lookalike Audience is a way your ads can reach new people who are likely to be interested in your business. This is because they share similar characteristics to your existing customers.

A Lookalike Audience uses an existing Custom Audience that you select for its source audience. To create a Lookalike Audience, our system leverages information such as demographics, interests and behaviours from your source audience to find new people who share similar qualities. When you use a Lookalike Audience, your ad is delivered to that audience of people who are similar to (or "look like") your existing customers.

Use Meta pixel to track and improve conversions

You can use the Meta Pixel to track your website visitors' actions also known as conversion tracking. Tracked conversions appear in the Meta Ads Manager and the Meta Events Manager, 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 for ad optimization and Advantage+ catalogue ad campaigns. By defining custom audiences, we can identify other Meta users who are likely to convert and target your ads to them.

Use Meta Pixel for remarketing

Create Custom Audiences from website visitors.

Dynamic ads help you automatically show website visitors the products they viewed on your website – or related ones.

Use Meta Pixel for creating custom conversion

Custom conversions let you create rules for events. When you create these rules, you can measure more specific customer actions. For example, you can filter all purchases to measure just purchases of women's shoes over USD 40. Using your custom conversions, you can optimize your ad delivery and reach people who are most likely to take the actions you desire.

Connection

Methods

When a track event is triggered, it is sent to Meta Pixel as track for Meta standard events or trackCustom for custom events. You can refer to the below example for a better understanding.

fbq('track', 'Purchase', {currency: "USD", value: 30.00});

Meta Pixel Standard Events

Meta Pixel has a list of standard events. As per Meta Pixel documentation,

Standard events are predefined by meta and can be used to log conversions, optimise for conversions and build audiences.

To see all the standard event lists and their description you can click here.

You can have both Standard and Custom properties in Standard Events

Meta Pixel Custom Events

Custom events are actions that fall outside of those covered by our standard events. You can give them a unique name to represent the action taking place. In your pixel code or Conversions API code, you can log custom events, optimize for conversions, and build audiences based on those custom events.

You can track custom events by calling the Pixel's fbq('trackCustom') function, with your custom event name and (optionally) a JSON object as its parameters. Fbq('trackCustom') can be called anywhere between your webpage's opening and closing body tags, either when the page loads or when a visitor clicks a button.

For example:-

fbq('trackCustom', 'ShareDiscount', {promotion: 'share_discount_10%'});

You can have both Standard and Custom properties in Custom Events

Custom event names must be strings, and cannot exceed 50 characters in length.

Custom Data Parameters

Use these parameters to send additional data for ads delivery optimization.

Example:

<script>
fbq('track', 'ViewContent', {
  content_name: 'Really Fast Running Shoes',
  content_category: 'Apparel & Accessories > Shoes',
  content_ids: ['1234'],
  content_type: 'product',
  value: 0.50,
  currency: 'USD'
  predicted_ltv: '0.00'
 });
</script>

Herecontent_name,content_category,content_ids,content_type,value, currency,predicted_ltvare some of the custom properties.

For more on Custom data parameters click here.

Setting up Meta Pixel destination in Lemnisk

You will have to perform the following steps in the Lemnisk app to add Meta Pixel as a destination.

Step 1: Navigate to CONNECT > Connections > Destinations and click +Create Destination.

Step 2: A Catalog pop-up appears. Select Meta Pixel and click Continue.

Step 3: Select a source of your choice by checking the box adjacent to the source and then click Continue.

Step 4: Type a unique name that acts as your destination identifier. Click Create Destination.

Step 5: The Overview tab appears with the details of the destination you just created.

Step 6: Click +Add Sources and select a source(s) of your choice by checking the box adjacent to the source, then click Continue.

Step 7: In the Name field, type a unique name.

Step 8: Toggle the Status button to activate the destination. You will be prompted to confirm your actions.

Step 9: Click Yes, Activate. You will be redirected to the Configuration tab.

Step 10: Type or paste your Pixel ID, from the snippet created on the Meta Pixel creation page.

Step 11: In the Map, your events with Meta Standard Events field, type the field name in the field name text box and then select the event you want to map it to from the adjacent drop-down.

Step 12: To add more fields, click +Add Field.

Step 13: The Limited Data Use, Enable Advanced Matching and Send UserId as External ID options are disabled by default. You can use the toggle button to enable or disable the options.

Step 14: Click Update Destination.

Verify Pixel events on Meta

To verify events at Meta Pixel, go to Meta Events Manager and select the Pixel from the left bar. You can verify the integration by checking events sent to Meta Pixel in the dashboard. For reference, check the below image:

Last updated