New Shopify Certification now available: Liquid Storefronts for Theme Developers

I need a custom hidden field at checkout to capture the gclid

1 0 0

Can you create a custom field called "gclid" in shopify?


I need to capture the gclid from all customers that checkout on my website

so that i can optimize tracking conversions for advertising


i don't have shopify +  is this an option i can self edit or pay someone to add to my site?

Replies 2 (2)
Shopify Partner
5931 537 1241

You would use cart attributes,  and javascript to put the gclid id from the url into the attributes value. This has to be done in the /cart step BEFORE checkout so is only valid for the online-sales channel 



If you need this customization then contact me by mail for services with detail.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Contact info in signature.

Save time & money ,Ask Questions The Smart Way

Confused? Busy? Get the solution you need

Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to

Shopify Partner
1413 131 152

Yes @PaulNewton is right you can store the information in cart attribute which will not be visible to user.

For any custom development WhatsApp or connect at Email ID: for quick consultation. | YouTube Videos
To support Buy Me a Coffee