PageSourceSearch

https://www.solartechnik-direkt.de/custom/plugins/DIScoGA4S5/Resources/js/ga4/actions/view-item-list.action.js

js solartechnik-direkt.de collected 2026-10-09 03:57:37 UTC 980 bytes, 45 lines download raw bytes

1import ga4ControllerAction from "../ga4-action.js";
2import DatalayerHelper from "../helpers/datalayer.helper.js";
3
4export default class viewItemListAction extends ga4ControllerAction {
5
6    trigger() {
7
8        this._triggerViewItemList();
9
10        const listing = document.querySelector('.listing--container');
11
12        if(listing){
13            listing.addEventListener('change', this._onChangeListing.bind(this))
14        }
15
16        const paginationLinks = document.querySelectorAll('.panel--paging a');
17        if(paginationLinks){
18
19            paginationLinks.forEach(paginationLink => paginationLink.addEventListener('click', this._onChangeListing.bind(this)));
20
21        }
22
23    }
24
25    _triggerViewItemList() {
26
27        if (!this.actionEnabled) {
28            return;
29        }
30
31        DatalayerHelper.viewItemList("category");
32
33    }
34
35    _onChangeListing() {
36
37        setTimeout(function(){
38
39            DatalayerHelper.viewItemList("category");
40
41        }, 1000);
42
43    }
44
45}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.