What are tags

Tags are essentially buckets which businesses can drop users into and thereby segment them. In case of automobile portal typical tags could be like “Car Vendor Name”, “Interested Car Type (Hatchback/Sedan)”, “Mileage”, etc. Every user can and will be assigned multiple tags. Tags will also have assignedAt and expiryDate. For e.g. you can say who are they users who have been assigned tag A today. Also with every tag’s definition you can set a default expiry for e.g. 6 months, i.e, after 6 months of assignment by default remove this tag from a user.

Tag Assignment

Tag assignment to users can happen in two ways. You can directly assign tags via the Identify call or you can assign them based on the URLs they visit.

We have a UI for creating and assigning tags based on URLs. Something like whoever visits URL https://www.example.com/books/old can be assigned tags like books, old and so on.

Visit Tags->Create New Tag.

Here you can specify a match type over the selected element(currently we are only supporting tagging based on URL). Currently three match types are supported: contains, equals, regex. The text you want to match should go into input field Tag Match Text/REGEX(pattern). In case of regex there are two fields one for the pattern and one for the modifier. Regex (regular expression) is generally expressed as /pattern/modifier. The pattern should go into Tag Match Text/REGEX(pattern) and the modifier should go in to REGEX(modifer). Please refer to the screenshot attached below for better understanding.




From API whenever we see a page event which causes tagging we will create/update the profile-tag mapping and send it to be stored in localStorage where clientJS can use them.

The profile-tag mapping will stored somewhat like this in our database, assuming expiry is 45 days.

Tag ProjectId Timestamp(day) Expiry(days) ProfileId
DummyTag 1234tedefr4 11748 11793 jessie

Tag Expiry

By default we expire tags assigned to any user after 6 months.

Direct Assignment of Tags

You can also assign tags to any users directly via Identify calls from the client side. Suppose a user has selected Men’s section from your site’s filters, you can send the following call to Connecto:

_connecto.identify(‘ABCD’, {‘$tags': [‘Men’, ‘Apparel’]});

Later you can leverage these tags while sending Push or Chrome notifications and send notifications to all users with the tag ‘Men’ or ‘Apparel’.



1 found this helpful