How To Add The Facebook/Meta/Instagram Pixel To Your WordPress Website Using Google Tag Manager

 

How To Add The Facebook/Meta/Instagram Pixel To Your WordPress Website Using Google Tag Manager

 

  1. Sign in to your Google Tag Manager account and create a new tag.
  2. Give the tag a name, such as “Facebook Pixel” or “Instagram Pixel.”
  3. Under “Tag Configuration,” select “Facebook Pixel” or “Instagram Pixel,” depending on which pixel you want to add.
  4. Enter your pixel ID in the “Pixel ID” field.
  5. Under “Triggering,” select “All Pages” to ensure that the pixel is added to all pages of your website.
  6. Click “Save” to create the tag.
  7. In another tab or window, log in to your WordPress website.
  8. Install the “Insert Headers and Footers” plugin if you haven’t already.
  9. Navigate to the plugin’s settings and paste the Google Tag Manager code in the “Scripts in Header” field.
  10. Go back to Google Tag Manager and click on “Variables” in the left-hand menu.
  11. Create a new variable and give it a name, such as “Pixel ID.”
  12. Under “Variable Configuration,” select “User-Defined Variable.”
  13. Under “Variable Type,” select “Constant.”
  14. Enter your pixel ID in the “Value” field.
  15. Click “Save” to create the variable.
  16. Go back to the “Facebook Pixel” or “Instagram Pixel” tag you created earlier and replace the pixel ID with the new variable.
  17. Click “Save” to update the tag.
  18. Preview the changes in Google Tag Manager to ensure that the pixel is firing correctly.
Share the Post:

More How-To Guides