# After form submissions getting cookie and analytics notifications

**URL:** <https://community.hubspot.com/t/after-form-submissions-getting-cookie-and-analytics-notifications/64353>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [September 2, 2022, 11:51am UTC](https://community.hubspot.com/t/after-form-submissions-getting-cookie-and-analytics-notifications/64353 "2022-09-02T11:51:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rupali](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rupali/32/48165_2.png) [@Rupali](https://community.hubspot.com/u/Rupali)\
**Post date:** [September 2, 2022, 11:51am UTC](https://community.hubspot.com/t/after-form-submissions-getting-cookie-and-analytics-notifications/64353/1 "2022-09-02T11:51:52Z")

</div>

Hi there,

I am submitting custom form data using action attribute. I would like to pass other parameters for example hutk mentioned here( [https://legacydocs.hubspot.com/docs/methods/forms/submit\_form](https://legacydocs.hubspot.com/docs/methods/forms/submit_form) ). How can I achieve this? Form submission is working successfully. But I am getting these notifications after successful form submission. Could you please let me know how can I solve this?

Thank you!

 ![Screenshot 2022-09-02 at 13.43.01.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/c/ac5a2d8ad6816346a40a6e7cf818c04ee66869af.png)

 ![Screenshot 2022-09-02 at 13.43.20.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/9/c95b68e9184a8d342f198ae6513a08e4068bc774.png)

```auto
<form name="totalCalculator" id="totalCalculator" action="https://forms.hubspot.com/uploads/form/v2/[[your_portal_id]]/[[your_form_id]]" method="post">
 <input type="text" id="firstname" name="firstname" placeholder="Your First Name">
 <input type="text" id="lastname" name="lastname" placeholder="Your Last Name">
 <input type="text" id="email" name="email" placeholder="Your Email Address">
 <input type="price" id="price" name="price">
 <input type="quantity" id="quantity" name="quantity">
 <div class="total">
 Your total will be <span id="total"></span>
 </div>
 <button id="calculate">Calculate</button>
</form>

```

---

<div class="post-metadata">

**Author:** ![LeeBartelme](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/leebartelme/32/95647_2.png) [@LeeBartelme](https://community.hubspot.com/u/LeeBartelme)\
**Post date:** [September 2, 2022, 12:49pm UTC](https://community.hubspot.com/t/after-form-submissions-getting-cookie-and-analytics-notifications/64353/2 "2022-09-02T12:49:11Z")

</div>

I’ve never done this personally, but I believe all you need to do is get the value of the utk cookie and add it to the form. To get the value Javascript like this should work.

`var hutk = document.cookie.replace(/(?:(?:^|.*;\s*)hubspotutk\s*\=\s*([^;]*).*$)|^.*$/, "$1")`

([Get HubSpot cookie (hubspotutk) using JavaScript](https://www.stephanieogaygarcia.com/hubspot-website-development/get-hubspot-cookie-hubspotutk-using-javascript))

Then you just need to set that value to a form field with the name hutk. I think that is it. Hopefully someone can correct me if I’m wrong.
