@@ -7,6 +7,19 @@ import PackageLink from '/src/components/docs/package-link';
77import Link from ' @docusaurus/Link' ;
88import Tabs from ' @theme/Tabs' ;
99import TabItem from ' @theme/TabItem' ;
10+ import { getEvent } from ' @elbwalker/utils' ;
11+ import {
12+ DestinationContextProvider ,
13+ DestinationInit ,
14+ DestinationPush ,
15+ } from ' @site/src/components/organisms/liveDestination' ;
16+ import destinationPiwikPro from ' @elbwalker/destination-web-piwikpro' ;
17+ import { mapping } from ' @elbwalker/destination-web-piwikpro/examples' ;
18+
19+ <DestinationContextProvider
20+ destination = { destinationPiwikPro }
21+ fnName = ' _paq.push'
22+ >
1023
1124<PackageLink
1225 browser = " @elbwalker/destination-web-piwikpro"
@@ -80,11 +93,6 @@ ID</Link> and URL.
8093
8194``` js
8295const config = {
83- custom: {
84- appId: ' XXX-XXX-XXX-XXX-XXX' , // Id of the site
85- // linkTracking: false, // Disable download and outlink tracking
86- url: ' https://your_account_name.piwik.pro/' , // Same address as the login
87- },
8896 mapping: {
8997 order: {
9098 complete: {
@@ -113,6 +121,14 @@ const config = {
113121};
114122` ` `
115123
124+ <DestinationInit
125+ custom={` {
126+ appId: ' XXX-XXX-XXX-XXX-XXX' , // Id of the site
127+ // linkTracking: false, // Disable download and outlink tracking
128+ url: ' https://your_account_name.piwik.pro/' , // Same address as the login
129+ }` }
130+ />
131+
116132### Custom
117133
118134| Property | Type | Description |
@@ -141,3 +157,57 @@ If you need professional support with your walkerOS implementation, check out
141157our <Link to="/services">services</Link>.
142158
143159:::
160+
161+ ## Mapping
162+
163+ You are able to map your walkerOS events to match the respective requirements of
164+ each vendor. The ` mapping` examples are using a
165+ live <Link to="#configuration">configuration</Link>.
166+
167+ :::tip
168+
169+ The code examples are interactive. You can edit the code to generate your
170+ individual event mapping.
171+
172+ :::
173+
174+ ### ecommerceProductDetailView
175+
176+ Map your walkerOS event to get
177+ an <Link to="https://developers.piwik.pro/docs/ecommerceproductdetailview#examples">ecommerceProductDetailView</Link>
178+ event.
179+
180+ <DestinationPush
181+ smallText={true}
182+ height={'512px'}
183+ event={getEvent('product view')}
184+ mapping={mapping.ecommerceProductDetailView}
185+ />
186+
187+ ### ecommerceAddToCart
188+
189+ Map your walkerOS event to get
190+ an <Link to="https://developers.piwik.pro/docs/ecommerceaddtocart#examples">ecommerceAddToCart</Link>
191+ event.
192+
193+ <DestinationPush
194+ smallText={true}
195+ height={'512px'}
196+ event={getEvent('product add')}
197+ mapping={mapping.ecommerceAddToCart}
198+ />
199+
200+ ### ecommerceOrder
201+
202+ Map your walkerOS event to get
203+ an <Link to="https://developers.piwik.pro/docs/ecommerceorder#examples">ecommerceOrder</Link>
204+ event.
205+
206+ <DestinationPush
207+ smallText={true}
208+ height={'512px'}
209+ event={getEvent('order complete')}
210+ mapping={mapping.ecommerceOrder}
211+ />
212+
213+ </DestinationContextProvider>
0 commit comments