Skip to content

Commit

Permalink
track when Replica content is viewed
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Oct 16, 2023
1 parent 58b5687 commit 55fa800
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/replica/ui/viewers/layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ abstract class ReplicaViewerLayoutState extends State<ReplicaViewerLayout> {
// For the Viewers in Replica, we are sending another request to fetch the below params.
// That request goes to `/object_info` endpoint (as opposed it coming bundled in our ReplicaSearchItem)
doFetchObjectInfo();
PlausibleUtils.trackUserAction('User viewed Replica content', {
'title': infoTitle,
});
}

void doFetchObjectInfo() async {
Expand Down

0 comments on commit 55fa800

Please sign in to comment.