We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to automatically add a tag to a customer when they click a link?

How to automatically add a tag to a customer when they click a link?

robert3a
Visitor
3 0 3

I would like to have a link, that when the customer clicks on it, automatically a tag is added to the customer. I want to put this link in an email where the customer can choose which gift he wants to get. So when he clicks on one of the gifts, he gets a tag with the name of the gift.

 

Thanks!

Reply 1 (1)

kaalTechGeeks
Shopify Partner
319 58 81

HI @robert3a
In order to achieve what you want you have to first ask your customer to register to your store, and take him to register page, and on the register code page just add the below line 

<input type="hidden" name="customer[tags]" value="your_tag_name"/>

    and replace the "your_tag_name" with the tag name that you want your customers to have. 
Once they have successfully registered they will be automatically tagged with the tag name you gave.  
let me know if yu have any difficulty in implementing it
Thanks

- If my answers saved you time and headaches, consider buying me a coffee!
- Check my profile: KaalTechGeeks | Reach out to me on my socials - Instagram | Skype | Mail
- Was my reply helpful? Click Like to let me know! & if your question was answered, Mark it as an Accepted Solution!