PageSourceSearch

https://www.steckutrecht.nl/wp-content/plugins/google-listings-and…/gtag-events.js?ver=6972d3af2e3be67de9f1

js steckutrecht.nl collected 2026-10-06 17:29:24 UTC 2,210 bytes, 1 lines download raw bytes

1(()=>{"use strict";const t=window.wp.hooks,e=(t2,e2)=>{var _a,_b;const a2={id:"gla_"+t2.id,quantity:e2,google_business_vertical:"retail"};return t2.name&&(a2.name=t2.name),(_a=t2==null?void 0:t2.categories)!=null&&_a.length&&(a2.category=t2.categories[0].name),(_b=t2==null?void 0:t2.prices)!=null&&_b.price&&(a2.price=parseInt(t2.prices.price,10)/10**t2.prices.currency_minor_unit),a2},a=(t2,a2=1)=>{((t3,e2)=>{if(typeof gtag!="function")throw new Error("Function gtag not implemented.");window.gtag("event","add_to_cart",{send_to:"GLA",...e2})})(0,{ecomm_pagetype:"cart",event_category:"ecommerce",items:[e(t2,a2)]})},n=t2=>{var e2;return glaGtagData.products[t2.id]&&(t2.name=glaGtagData.products[t2.id].name,t2.prices=(e2=glaGtagData.products[t2.id].price,{price:Math.round(e2*10**glaGtagData.currency_minor_unit),currency_minor_unit:glaGtagData.currency_minor_unit})),t2};(0,t.addAction)("experimental__woocommerce_blocks-cart-add-item","google-listings-and-ads",({product:t2,quantity:e2=1})=>{a(t2,e2)});const r=function(t2){const e2=t2.currentTarget.dataset,r2=n({id:e2.product_id});a(r2,e2.quantity||1)},o=function(t2){const e2=t2.target.closest("form.cart");if(!e2)return;const r2=e2.querySelector("[name=add-to-cart]");if(!r2)return;const o2=e2.querySelector("[name=variation_id]"),c=e2.querySelector("[name=quantity]"),i=n({id:parseInt(o2?o2.value:r2.value,10)});a(i,c?parseInt(c.value,10):1)};document.defaultView.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".add_to_cart_button:not( .product_type_variable ):not( .product_type_grouped ):not( .wc-block-components-product-button__button )").forEach(t2=>{t2.addEventListener("click",r)}),document.querySelectorAll('[data-block-name="woocommerce/product-button"] > .add_to_cart_button:not( .product_type_variable ):not( .product_type_grouped )').forEach(t2=>{t2.addEventListener("click",r)}),document.querySelectorAll(".single_add_to_cart_button").forEach(t2=>{t2.addEventListener("click",o)})}),typeof jQuery=="function"&&jQuery(document).on("found_variation","form.cart",function(t2,e2){(t3=>{t3!=null&&t3.variation_id&&(glaGtagData.products[t3.variation_id]={name:t3.display_name,price:t3.display_price})})(e2)})})();

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.