feat: banners events #19
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Ready to review.
Topsort Banner Events
This is a destination so that eCommerce sites that already use Segment (to track actions) can integrate Topsort events for sponsored listings seamlessly. With this PR we now add the events integration for banner ads too.
Intro to Topsort Banners
Topsort allows to monetize through banner auction ads served in your site. To learn more about Topsort you can visit our docs.
This destination already helps you track the 3 main events Topsort needs to serve the most relevant sponsored listing ads:
impressions
,clicks
andpurchases
. Here is the new events we map for the banner events:click
should be triggered with the bannerresolvedBidId
.purchase
event should be reported to Topsort. You can report a purchase whether it has promoted products or not. We will take care of filtering relevant promoted products inside the completed order given the information about promoted clicks. For more information on banner attribution with Topsort you can go to https://api.docs.topsort.com/api-reference/examples/sponsored-banners/attributionTesting
End to end tests
Click event with additional attribution in local Action Tester
Impression event with additional attribution in local Action Tester
Banner Impression event with local Action Tester
Banner Click event with local Action Tester