Count the Number of Opens/Clicks per recipient | Community
Skip to main content
Level 2
November 30, 2021
Solved

Count the Number of Opens/Clicks per recipient

  • November 30, 2021
  • 1 reply
  • 1188 views

Hi, 

 

I've seen a few similar posts but none really get to what I need.

 

I'm hoping to segment customers based on their engagement i.e. Opened X times = High etc. For this I hoped to have each recipeint with the number of opens/clicks pull through for a particular time period.

 

Example query I'd like to use to split contacts: number of opens greater than X

 

When trying to get the count of opens/clicks by recipient I can't seem to find what i need.

 

I'm doing this in a workflow and have tried Count([url/@type]=1) for clicks and grouping by recipient PK. 

 

How would you achieve this?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by david--garcia

Something like this??

 

Query the Recipient tracking logs (nms) nms trackingLogRcp

 

 

Here is the XML configuration of the activity

 

 

<query collision="0" distinct="true" img="nms:activities/query.png" keepAllExtraData="false" label="undefined" mask="0" name="queryCountURL" noAutoPk="true" noAutoPkFilter="0" onError="0" recipientLink="" runOnSimulation="true" schema="nms:trackingLogRcp" timezone="_inherit_" useSource="0" x="520" y="80"> <transitions> <result enabled="true" label="Result" name="result" x="670" y="104"/> </transitions> <select> <node alias="@recipient" analyze="false" expr="[@recipient-id]" groupBy="1" label="recipient"/> <node alias="@count" analyze="false" expr="count([url/@type])" groupBy="0" label="Count"/> <node alias="@urlType" analyze="false" expr="[url/@type]" groupBy="1" label="Type (Url)"/> </select> <where displayFilter="undefined" filterName="backGroundFilterFrm" id="1663107605"/> <outputFilter displayFilter="count greater than 2 and type (Url) equal to Open"> <condition boolOperator="AND" compositeKey="" dependkey="" enabledIf="" expr="@count &gt; 2" internalId="1733493285"/> <condition compositeKey="" dependkey="" enabledIf="" expr="@urlType = 2" internalId="1742864937"/> </outputFilter> <humanCond>Query: undefined</humanCond> </query>

 

 

 

1 reply

david--garcia
david--garciaAccepted solution
Level 10
December 2, 2021

Something like this??

 

Query the Recipient tracking logs (nms) nms trackingLogRcp

 

 

Here is the XML configuration of the activity

 

 

<query collision="0" distinct="true" img="nms:activities/query.png" keepAllExtraData="false" label="undefined" mask="0" name="queryCountURL" noAutoPk="true" noAutoPkFilter="0" onError="0" recipientLink="" runOnSimulation="true" schema="nms:trackingLogRcp" timezone="_inherit_" useSource="0" x="520" y="80"> <transitions> <result enabled="true" label="Result" name="result" x="670" y="104"/> </transitions> <select> <node alias="@recipient" analyze="false" expr="[@recipient-id]" groupBy="1" label="recipient"/> <node alias="@count" analyze="false" expr="count([url/@type])" groupBy="0" label="Count"/> <node alias="@urlType" analyze="false" expr="[url/@type]" groupBy="1" label="Type (Url)"/> </select> <where displayFilter="undefined" filterName="backGroundFilterFrm" id="1663107605"/> <outputFilter displayFilter="count greater than 2 and type (Url) equal to Open"> <condition boolOperator="AND" compositeKey="" dependkey="" enabledIf="" expr="@count &gt; 2" internalId="1733493285"/> <condition compositeKey="" dependkey="" enabledIf="" expr="@urlType = 2" internalId="1742864937"/> </outputFilter> <humanCond>Query: undefined</humanCond> </query>

 

 

 

ChrisA93Author
Level 2
December 2, 2021

Hi @103942 

 

Brilliant thank you!