You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added documentation for two <ahref="https://dealerdotcom.github.io/web-integration-api-docs/#insert-locations">Insert Locations</a>.
8
+
* <ahref="https://dealerdotcom.github.io/web-integration-api-docs/#content">`content`</a> requires that a landing page be created with this target.
9
+
* <ahref="https://dealerdotcom.github.io/web-integration-api-docs/#secondary-content">`secondary-content`</a> is present ~2/3 of the way down on details pages.
// This element is the media gallery container on vehicle deals pages.
138
+
// This element is the media gallery container on vehicle details pages.
139
139
// Injecting into this location will replace the media gallery with the elements you insert.
140
140
});
141
141
})(window.DDC.API);
@@ -159,7 +159,43 @@ This element is positioned below the vehicle pricing area on vehicle search and
159
159
})(window.DDC.API);
160
160
```
161
161
162
-
This element is the media gallery container on vehicle deals pages. Injecting into this location will replace the media gallery with the elements you insert.
162
+
This element is the media gallery container on vehicle details pages. Injecting into this location will replace the media gallery with the elements you insert.
163
+
164
+
## Secondary Content
165
+
166
+
> Usage:
167
+
168
+
```javascript
169
+
(WIAPI=> {
170
+
constAPI=newWIAPI('test-integration'); // Note: Replace 'test-integration' with your actual integration identifier.
171
+
API.insert('secondary-content', (elem, meta) => {
172
+
// This element is the a secondairy content container on vehicle details pages roughly 2/3 of the way down.
173
+
// It may also be added custom two one or two stand-alone pages on the website.
174
+
});
175
+
})(window.DDC.API);
176
+
```
177
+
178
+
> Example Implementation:
179
+
180
+
```javascript
181
+
(WIAPI=> {
182
+
constAPI=newWIAPI('test-integration'); // Note: Replace 'test-integration' with your actual integration identifier.
By default, this element is roughly 2/3 of the way down on vehicle details pages.
197
+
198
+
Since this may also be present on one or two standalone pages as custom additions, it is likely you will want to target just details pages by first subscribing to the <ahref="#page-load-v1">`page-load-v1`</a> event, then using the <ahref="#page-event">event</a> value of `payload.detailPage` to check the page type.
163
199
164
200
## Primary Banner
165
201
@@ -204,4 +240,47 @@ This element is positioned in a prominent location above the vehicle listings on
204
240
205
241
On the Details page, it is positioned at the top of the vehicle information, below the media gallery.
206
242
207
-
You can target either the listings or details page by first subscribing to the page-load-v1 event, and using the event values of `payload.searchPage` and `payload.detailPage` to check the page type.
243
+
You can target either the listings or details page by first subscribing to the <ahref="#page-load-v1">`page-load-v1`</a> event, then using the <ahref="#page-event">event</a> values of `payload.searchPage` and `payload.detailPage` to check the page type.
244
+
245
+
## Content
246
+
247
+
> Usage:
248
+
249
+
```javascript
250
+
(WIAPI=> {
251
+
constAPI=newWIAPI('test-integration'); // Note: Replace 'test-integration' with your actual integration identifier.
252
+
API.insert('content', (elem, meta) => {
253
+
// This element is will only insert on to Dealer.com pages created for your purposes.
254
+
// It may also be present on pages created for another integration.
255
+
});
256
+
})(window.DDC.API);
257
+
```
258
+
259
+
> Example Implementation:
260
+
261
+
```javascript
262
+
(WIAPI=> {
263
+
constAPI=newWIAPI('test-integration'); // Note: Replace 'test-integration' with your actual integration identifier.
Because this will rely on the creation of a custom landing page, you will need to work with us to ensure you have a blank page with this target.
285
+
286
+
Once this is done, you will need to subscribe to the <ahref="#page-load-v1">`page-load-v1`</a> event, then use the <ahref="#page-event">event</a> value of `payload.pageName` to ensure you only target your dedicated landing page.
0 commit comments