# Tracking Code on a Lead Flow TYP

**URL:** <https://community.hubspot.com/t/tracking-code-on-a-lead-flow-typ/3029>\
**Category:** CMS Development\
**Created:** [August 14, 2017, 8:30pm UTC](https://community.hubspot.com/t/tracking-code-on-a-lead-flow-typ/3029 "2017-08-14T20:30:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![LorenaIoli](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lorenaioli/32/47197_2.png) [@LorenaIoli](https://community.hubspot.com/u/LorenaIoli)\
**Post date:** [August 14, 2017, 8:30pm UTC](https://community.hubspot.com/t/tracking-code-on-a-lead-flow-typ/3029/1 "2017-08-14T20:30:13Z")

</div>

Hi,

Is it possible to add a tracking code on a Lead Flow Thank You Page?

Or on a button?

By tracking code, I mean an Adwords/Facebook Pixel (script) to measure Ads performance.

Thank you! 🙂

---

<div class="post-metadata">

**Author:** ![Jsum](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jsum/32/20405_2.png) [@Jsum](https://community.hubspot.com/u/Jsum)\
**Post date:** [August 14, 2017, 8:45pm UTC](https://community.hubspot.com/t/tracking-code-on-a-lead-flow-typ/3029/2 "2017-08-14T20:45:39Z")

</div>

@LorenaIoli,

Yes. Your pixel will usually come with instructions from the provider. They will give you code to put in either the head or the footer of your landing page. If you need to put it in the head you can do so by going to the editor for the page in question, choosing edit (in the top left of the editor) and choosing “edit head” from the drop down. There you will be give a text box for, I believe, both the head and footer but definitely the head. You can paste your code there.

If the footer is required and I am wrong about there being a text box to edit the footer, you can add a custom html module to the bottom of your template so that you can paste your code into it in the editor.

You want to place these codes on the page level using the page editor, not on the template level. Placing them in the template will cause all of the pages using that template to be tracked. If it is supposed to be a site wide code you can add it to your site by going to content → content settings where you will find head and footer editing boxes that effect your entire site.

Edit\*\* also, typically with landing pages you will want to track the thank you page in order to measure conversions. Just because they go to your landing page doesn’t mean they convert, if they visit your thank you page then they most likely converted.

---

<div class="post-metadata">

**Author:** ![edjusten](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/edjusten/32/14475_2.png) [@edjusten](https://community.hubspot.com/u/edjusten)\
**Post date:** [August 15, 2017, 5:38am UTC](https://community.hubspot.com/t/tracking-code-on-a-lead-flow-typ/3029/3 "2017-08-15T05:38:26Z")

</div>

Hi @LorenaIoli I’m a bit confused by your query. Lead Flows usually only show a Thank You message. As such, it’s not possible to add tracking to the message. Were you instead refering to a _Thank You_ page that is the final step in aconversion path? If so, @Jsum 's answer is the correct guidance.

Ed

---

<div class="post-metadata">

**Author:** ![LorenaIoli](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lorenaioli/32/47197_2.png) [@LorenaIoli](https://community.hubspot.com/u/LorenaIoli)\
**Post date:** [August 15, 2017, 4:26pm UTC](https://community.hubspot.com/t/tracking-code-on-a-lead-flow-typ/3029/4 "2017-08-15T16:26:51Z")

</div>

Hi @edjusten, yes, you are right. I meant the thank you area of the lead flow, the last step.

Too bad we can’t track those leads, I hope Hubspot includes this in future updates.

Thank you for taking the time to answer in such a detailed manner, @Jsum. Hopefully, it will help someone else.

---

<div class="post-metadata">

**Author:** ![jknapp](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jknapp/32/90043_2.png) [@jknapp](https://community.hubspot.com/u/jknapp)\
**Post date:** [February 2, 2018, 3:08pm UTC](https://community.hubspot.com/t/tracking-code-on-a-lead-flow-typ/3029/5 "2018-02-02T15:08:38Z")

</div>

Yes, I love the experience of the lead flow but if I can’t track through conversion it’s almost useless.  
Would be nice to have a full form builder with pregressive profiling and dependency as well, but an option to use a Thank You page instead of a message is a key first addition here.

---

<div class="post-metadata">

**Author:** ![Jice-Lavocat](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jice-lavocat/32/2122_2.png) [@Jice-Lavocat](https://community.hubspot.com/u/Jice-Lavocat)\
**Post date:** [February 23, 2018, 9:34am UTC](https://community.hubspot.com/t/tracking-code-on-a-lead-flow-typ/3029/6 "2018-02-23T09:34:41Z")

</div>

Yeah, without conversion tracking, it’s definitely loosing interest for us.  
@jknapp suggestion of just a [redirect to a thank you page](https://community.hubspot.com/t5/Content-Design-Questions/Tracking-Code-on-a-Lead-Flow-TYP/m-p/176510/highlight/true#M4614) would be a great starting point.

---

<div class="post-metadata">

**Author:** ![Oscars\_Oscars](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/oscars_oscars/32/79874_2.png) [@Oscars\_Oscars](https://community.hubspot.com/u/Oscars_Oscars)\
**Post date:** [July 26, 2018, 7:41pm UTC](https://community.hubspot.com/t/tracking-code-on-a-lead-flow-typ/3029/7 "2018-07-26T19:41:32Z")

</div>

Has anyone figured out a workaround to this?
