#+title: S04|L22 - overview of how to install meta pixel dataset
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="../../../_share/media/css/facebook.css" />
#+OPTIONS: H:6

* Links
#+attr_html: :class links
- [[../../toc.org][TOC - Facebook Marketing Notes]]
- [[https://www.udemy.com/course/facebook-ads-facebook-marketing-mastery-guide/learn/lecture/42953100#overview][S04|L22 - video]]
- [[file:../../../_share/data/envy/facebook/section03/20-Facebook_Meta_Pixe_Standard_Events_and_Custom_Conversions.pdf][meta pixel, standard events, and custom conversions pdf]]
- https://www.coursenvy.com/post/custom-conversions-url-contains-or-url-equals

* Notes

** set up datasource

1. go to the left sidebar, and click on 'All Tools' icon

  #+attr_html: :width 800
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex01a-all_tools.png

2. now click on 'Business Settings'

  #+attr_html: :width 800
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex01b-business_settings.png

*** data sources
facebook got rid of the 'pixels' subcategory and replaced it with 'datasets'

1. click on 'Data Sources'

  #+attr_html: :width 400
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex02a-data_sources.png

2. click on 'Datasets', then 'Add'

  #+attr_html: :width 400
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex02b-datasets.png

3. enter the pixel name and hit 'create'
   - it's suggested you use the date in the name so you know when it was created

  #+attr_html: :width 800
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex02c-create_dataset.png

*** add yourself and assets

you will be taken to the Dataset page where it will show your created datasets
#+attr_html: :width 800
file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex03a-dataset.png

1. add yourself to the dataset
  #+attr_html: :width 800
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex03b-add_yourself.png

2. connect it to your Ad Campaign
  #+attr_html: :width 800
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex03c-asset.png


** use the pixel

1. go to event manager

  #+attr_html: :width 800
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex04a-eventmanager.png

2. click on settings

  #+attr_html: :width 800
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex04b-settings.png


*** set up the pixel

1. turn on Automatic Website Matching

  #+attr_html: :width 800
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex05a-automatic_website_matching.png

2. turn on Event Setup Tool

  #+attr_html: :width 800
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex05b-event_setup_tool.png

*** install the pixel into your website

1. Setup Partner Integration

  #+attr_html: :width 800
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex06a-partner_integration.png

2. choose partner

  #+attr_html: :width 800
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex06b-choose_partner.png


3. scroll up the settings page and get the Dataset ID

  #+attr_html: :width 800
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex06c-dataset_id.png


** testing
1. go to 'Test Events'
   - confirm server set up correctly
   - confirm website events set up correctly
     - type in website url
     - browse around, click on buttons
   -
         #+attr_html: :width 800
         file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex07a-test_events.png

2. Go to diagnositcs
  #+attr_html: :width 800
  file:../../../_share/media/img/facebook/envy/section_03/lesson-22/ex07b-diagnostics.png
