Skip to content

Commit

Permalink
removed pageview option
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkirtzel committed Dec 5, 2024
1 parent f92a3da commit 96ddd84
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions website/docs/destinations/piwikpro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,30 @@ const config = {
custom: {
appId: 'XXX-XXX-XXX-XXX-XXX', // Id of the site
// linkTracking: false, // Disable download and outlink tracking
// pageview: false, // Disable default pageview events
url: 'https://your_account_name.piwik.pro/', // Same address as the login
},
mapping: {
entity: {
action: {
order: {
complete: {
name: 'trackEcommerceOrder',
custom: {
// CustomEvent
goalId: 'xxx-xxx-...', // Count the event as a goal
goalValue: '', // Property to be used as goal value
name: '', // Renaming the event
value: '', // Property to be used for the value
goalValue: 'data.total', // Property to be used as goal value
},
data: [
'data.id',
'data.total',
{
fn: (event) => {
const total = Number(event.data?.total ?? 0);
const taxes = Number(event.data?.taxes ?? 0);
const shipping = Number(event.data?.shipping ?? 0);

return total - taxes - shipping;
},
},
],
},
},
},
Expand Down

0 comments on commit 96ddd84

Please sign in to comment.