Autotag Customer Based on Email when Account is Created


This is an unsupported theme customization.  You can request this customization by emailing our Professional Services Team.

With Customer Specific Pricing you can automatically tag a customer when they create an account based on their email address.

  1. Enable Customer Accounts in Shopify.
  2. From "Shopify Admin", select Online Store.

    select online store 

  3. Select Actions.

    Select Actionsg 

  4. Select Edit code.

    Select Edit code 

  5. Under "Templates", select customers/register.liquid.

    select customers/register.liquid 

  6. Find:

    {% form 'create_customer' %}

    find this line of code 

  7. Copy and paste this code directly below that line:

    Note: #### is the text string in the email to auto tag and !!!! is the tag you wish to auto tag.

    $('#create_customer').submit(function() { 
     if ($('#email input').val().indexOf("####") != -1) {
     $('#create_customer').append('<input type="hidden" id="customer_tags" name="customer[tags]" value="!!!!"/>');

    copy and paste this code 

  8. Select Save.

    select save 

That's it!

Next Steps:

Blog Posts: