Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Patrick de Mooij 72 posts 622 karma points MVP 3x c-trib
    Jun 04, 2021 @ 12:20
    Patrick de Mooij

    Get all events by user

    For one of our use cases we want to show a popup to an user whenever he/she gets into a certain segment. Ideally we want to also track if the user uses or closes the popup so that we can use that to determine if the user already had the popup.

    For that, we want to use the events within uMarketingSuite. So what we are wondering is:

    • How can we add an event within C# to an user?
    • How can we get all the events for a certain user?
    • How is the performance of getting all the events for a certain user? We don't want to hit the database on each page. Is there already caching in place within uMarketingSuite or do we add that ourselves? If so, is there an event we can use for clearing the cache (whenever a new event gets added)

    Thanks in advance! Patrick

  • [email protected] 408 posts 2137 karma points MVP 7x c-trib
    Jun 07, 2021 @ 18:00

    Hi Patrick,

    thanks for sharing your use case! That always inspires us to create even more extension points within the marketing suite.

    1) You can create your own events via javascript as is documented on

    Unfortunately we do not have a documented API at the moment to do this for C#. I've added it to the backlog towards the future

    2) Unfortunately we do not have that at the moment. Of course you can always query the database by query'ing the table uMarketingSuiteAnalyticsPageEvent (link it via uMarketingSuiteAnalyticsPageview to uMarketingSuiteAnalyticsSession and finally to uMarketingSuiteAnalyticsVisitor). This is not the preferred way in the end state (when we will have a documented API available), but the best way to go for now.

    3) At this moment there's no caching layer in place.

    Sorry that we don't have these things in place at the moment. On the other hand; now you have some fun things to develop ;)!

    Kindest regards,


    enter image description here

  • Patrick de Mooij 72 posts 622 karma points MVP 3x c-trib
    Jun 09, 2021 @ 08:10
    Patrick de Mooij

    Hi Jeffrey,

    That's a shame. Then we will probably take a look at using goals with this. However, then the question is. Is there a way to see what goals the user has completed?

  • Tom van Gessel 21 posts 266 karma points
    Jun 15, 2021 @ 14:56
    Tom van Gessel

    Hi Patrick,

    Within uMarketingSuite in the section Profiles -> Insights you can find which goals are completed by that specific user. See:

    enter image description here

    If you would like to do it from code. Currently the only option is to query the database (API available in the future). Please have a look at the uMarketingSuiteAnalyticsGoalCompletion table where you can find the completed goals and the corresponding pageviewId which you can join with the id in the uMarketingSuiteAnalyticsPageview table. Then you have the sessionId's which you can join with the uMarketingSuiteAnalyticsSession table and this will give you the visitor id's which you can use to find the externalId's (uMarketingSuite guid in cookie) of the visitor in the uMarketingSuiteAnalyticsVisitor table.

    If you have any further questions please let us know.

    Kind regards, Tom

    enter image description here

Please Sign in or register to post replies

Write your reply to: