# CTA: How to edit embedded code

**URL:** <https://community.hubspot.com/t/cta-how-to-edit-embedded-code/65815>\
**Category:** Lead Capture Tools\
**Tags:** marketing\
**Created:** [September 24, 2022, 9:04am UTC](https://community.hubspot.com/t/cta-how-to-edit-embedded-code/65815 "2022-09-24T09:04:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JDiaz22](https://avatars.discourse-cdn.com/v4/letter/j/eada6e/32.png) [@JDiaz22](https://community.hubspot.com/u/JDiaz22)\
**Post date:** [September 24, 2022, 9:04am UTC](https://community.hubspot.com/t/cta-how-to-edit-embedded-code/65815/1 "2022-09-24T09:04:06Z")

</div>

Hi All, i have a CTA embedded code wherein i want to record the user email who clicked it.  
The CTA will show “Upgrade” (image 1) button but it cannot trigger the workflow as it only records the website wherein the embedded code has been used (image 2)

image 1:

 ![JDiaz22_1-1664010074938.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/1/41aa17c3e34617dd78122a13f00ec46d515132ff.png)

image 2:

 ![JDiaz22_0-1664010060305.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/9/932007899b4fc0a3ac4cedf0650e799295fd6fed.png)

i wonder if its possible by eddting the embedded code or editting the CTA itself, or its not a supported feature.  
my CTA looks like this:

 ![JDiaz22_2-1664010213879.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/6/b65686af6d8fb581c1c3eaba39287977df4cb176.png)

 ![JDiaz22_3-1664010224288.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/4/244132c356f1375fc1ba085b21933a27a0ac03c6.png)

---

<div class="post-metadata">

**Author:** ![kvlschaefer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kvlschaefer/32/71076_2.png) [@kvlschaefer](https://community.hubspot.com/u/kvlschaefer)\
**Post date:** [September 26, 2022, 12:05pm UTC](https://community.hubspot.com/t/cta-how-to-edit-embedded-code/65815/2 "2022-09-26T12:05:38Z")

</div>

Hi @JDiaz22,

Thanks for reaching out to the Community!

It is possible to trigger a contact-based workflow based on a **CTA click (on any page or a specific page)** or a **CTA view (on any page or a specific page)** and then choose a [workflow action](https://knowledge.hubspot.com/workflows/choose-your-workflow-actions) such as “Add Contact to a Static List” or “Send a Marketing Email” for those contacts who clicked on the CTA for example.

You mentioned that you would like to capture the email addresses of those contacts who clicked on the CTA, correct?

Have you considered using the CTA filter in the lists tool? You could create a list using this filter to keep track of the contacts who click on the CTA on any webpage or a specific webpage. You’ll want to ensure the [tracking code](https://knowledge.hubspot.com/reports/install-the-hubspot-tracking-code) is installed on the webpage to track the contacts who click on it.

 ![Screen Shot 2022-09-26 at 1.54.35 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/c/c10e54af11cca0750462ef71d6c1b3f378bc178b.png)

Is this what you are referring to, @JDiaz22? If not, can you please include additional information on the workflow you are trying to build and if you’re trying to capture the names of contacts who have been cookied and/or website visitors?

Thank you!

Best,

Kristen

---

<div class="post-metadata">

**Author:** ![JDiaz22](https://avatars.discourse-cdn.com/v4/letter/j/eada6e/32.png) [@JDiaz22](https://community.hubspot.com/u/JDiaz22)\
**Post date:** [September 26, 2022, 12:22pm UTC](https://community.hubspot.com/t/cta-how-to-edit-embedded-code/65815/3 "2022-09-26T12:22:54Z")

</div>

thank you @kvlschaefer , it seems the tracking code is the one i needed. will be testing this one.
