Skip to content

Commit

Permalink
Minor text changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotter authored Sep 9, 2022
1 parent a805189 commit d20a6c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hookdocs/modify-tracking-data.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The plugin generates tracking data and sent it to Sophi Collector on normal (non-AMP) page views. While the intention of this plugin is to accurately capture all the necessary information automatically, there are some use cases that will need to modify this data prior to it being sent to Sophi.
The plugin generates tracking data and sends it to the Sophi Collector on normal (non-AMP) page views. While the intention of this plugin is to accurately capture all the necessary information automatically, there are some use cases that will need to modify this data prior to it being sent to Sophi.

The generated tracking data is passed through a custom filter ([`sophi_tracking_data`]{@link sophi_tracking_data}), which allows you to customize this information. See below for a few examples of how to utilize this filter.

Expand All @@ -10,7 +10,7 @@ A few things to note:

### Modify existing data

One of the fields that are sent is called `type`. This is currently set to the content type of the post. If you need to change this to something else, like "video", you can do the following:
One of the fields that is sent is called `type`. This is currently set to the content type of the post. If you need to change this to something else, like "video", you can do the following:

```php
/**
Expand Down

0 comments on commit d20a6c9

Please sign in to comment.