Meta tags:
description= ❗️ Deprecated: This method is no longer recommended. Use the ecommerceOrder() method instead. The sendTransaction() method tracks a confirmed order. Syntax let transaction = PiwikTransaction builder in builder.identifier = orderID builder.grandTotal = orderGrandTotal builder.subTotal = orderSubT…;
Headings (most frequently used words):
sdk, js, api, other, sendtransaction, browser, consent, manager, android, flutter, ios, react, native, integrations, data, activation, syntax, parameters, examples, notes, related, methods, deprecated,
Text of the page (most frequently used words):
builder (34), the (23), track (20), transaction (19), order (11), #sendtransaction (11), 100 (10), piwiktransaction (9), methods (8), for (8), sdk (8), tracking (7), ecommerceorder (6), additem (6), with (6), example (6), tax (6), custom (6), let (5), api (5), dispatch (5), piwik (5), pro (5), name (5), format (5), base (5), currency (5), unit (5), usd (5), nsnumber (5), cross (5), getting (5), started (5), and (4), method (4), identifier (4), grandtotal (4), subtotal (4), shippingcost (4), discount (4), specialized (4), category (4), price (4), quantity (4), piwiktracker (4), sharedinstance (4), data (4), web (4), platform (4), using (4), setuserid (4), advanced (4), usage (4), examples (3), not (3), items (3), build (3), sku (3), piwiktransactionbuilder (3), orderdiscount (3), shipping (3), ordershipping (3), ordertax (3), ordersubtotal (3), ordergrandtotal (3), orderid (3), content (3), log (3), react (3), trackgoal (3), trackecommerceorder (3), trackecommercecartupdate (3), startnewsession (3), setvisitoridlifetime (3), setvisitoridfromdeeplink (3), setvisitorid (3), setsessiontimeout (3), setsessionhash (3), setdispatchinterval (3), setanonymizationstate (3), getuseragent (3), getsessionhash (3), checkaudiencemembership (3), ecommerceremovefromcart (3), ecommerceproductdetailview (3), ecommercecartupdate (3), ecommerceaddtocart (3), docs (3), related (2), notes (2), parameters (2), syntax (2), use (2), instead (2), any (2), each (2), you (2), empty (2), line (2), item (2), total (2), call (2), nil (2), this (2), transactionwithblock (2), 43967392 (2), 525000 (2), 520000 (2), 97000 (2), 15000 (2), 10000 (2), additemwithsku (2), 584340 (2), stumpjumper (2), mountain (2), bike (2), 500000 (2), 460923 (2), chamonix (2), helmets (2), 20000 (2), objective (2), swift (2), confirmed (2), discounts (2), included (2), payment (2), yes (2), other (2), integration (2), pages (2), native (2), tracksocialinteraction (2), tracksearch (2), trackscreen (2), trackoutlink (2), trackexception (2), trackecommerceremovefromcart (2), trackecommerceproductdetailview (2), trackecommerceaddtocart (2), trackdownload (2), trackcustomevent (2), trackcampaign (2), trackapplicationupdate (2), trackapplicationinstall (2), setuseremail (2), setprefixing (2), setoptout (2), isanonymizationon (2), getvisitorid (2), getuserid (2), applicationupdate (2), applicationinstall (2), setcustomvariable (2), setcustomdimension (2), sendapplicationdownload (2), optout (2), dryrun (2), audiencemanagergetprofileattributes (2), flutter (2), trackcontentinteraction (2), trackcontentimpression (2), outlink (2), download (2), consent (2), management (2), changelog (2), home (2), copy, page, new, code, ecommerceproducts, does, persist, state, between, calls, create, independent, starts, add, must, have, will, non, factory, can, return, grand, missing, invalid, unwrap, validate, instance, first, works, legacy, optionally, adding, then, costs, without, includes, unique, string, description, required, type, parameter, tracks, longer, recommended, deprecated, mcp, server, skip, link, disable, delay, attribute, layer, security, policy, csp, popup, import, profile, building, identity, resolution, attributes, activation, analytics, progressive, applications, pwa, accelerated, mobile, amp, integrations, trackprofileattributes, trackinteraction, trackimpression, trackecommerce, setincludedefaultcustomvariables, setdryrun, isprefixingon, getuseremail, getsessiontimeout, getprofileattributes, getoptout, getincludedefaultcustomvariables, getdryrun, getdispatchinterval, sourcetrafficversion, sourcetrafficname, sessionhash, isprefixingenabled, visitoridlifetime, eventsperrequest, samplerate, appversion, appname, useragent, setvisitoridfrom, deletequeuedevents, visitorid, userid, useremail, sessiontimeout, sendviews, sendview, sendsocialinteraction, sendsearch, sendaudiencemanagerattribute, sendoutlink, sendgoal, sendexception, sendevent, senddownload, sendcontentinteraction, sendcontentimpression, sendcampaign, maxnumberofqueuedevents, maxageofqueuedevents, isanonymizationenabled, includedefaultcustomvariable, dispatchinterval, deviceid, checkmembership, ios, trackprofileattribute, trackecommercetransaction, trackcustomvariable, trackcustomdimension, trackappinstall, setincludedefaultvariables, readuserprofileattributes, getvisitoridlifetime, visitvariables, variable, socialinteraction, search, screens, screen, interaction, impression, goal, exception, event, dimension, campaign, setusermail, settrafficsourceversion, settrafficsourcename, setofflinecachesize, setofflinecacheage, setincludedefaultcustomvars, setdryruntarget, setdispatchtimeout, setdispatchmode, setdeviceid, setapplicationdomain, getdeviceid, audiencemanagersetprofileattribute, android, tracksavechoicesclick, trackreminderwidgetview, trackrejectallclick, trackprivacypolicylinkview, trackmainformview, trackclosebuttonclick, trackagreetoallclick, setinitialcompliancesettings, setcompliancesettings, senddatarequest, openconsentform, getnewcompliancetypes, getcompliancetypes, getcompliancesettings, form, overview, manager, setuserisanonymous, setsessionidstrictprivacymode, setiptracking, getvisitorinfo, resetuserid, deanonymizeuser, user, settrackerurl, settimingdatasamplingonpageload, setsiteinspectorsetup, setsiteid, setreferrerurl, setlinktrackingtimer, setdomains, setdocumenttitle, setcustomurl, setenableclienthints, setapiurl, gettrackerurl, gettimingdatasamplingonpageload, getdomains, getsiteid, getpiwikurl, getlinktrackingtimer, discardhashtag, getcurrenturl, addtracker, disableperformancetracking, client, configuration, trackerror, settrackingsourceprovider, settrackingsource, setrequestmethod, setrequestcontenttype, setgenerationtimems, setcustomrequestprocessing, setdonottrack, setcountprerendered, redirectfile, ping, killframe, gettrackingsource, gettrackingsourceprovider, getnumtrackedpageviews, enablejserrortracking, getconfigidpageview, appendtotrackingurl, addlistener, miscellaneous, trackheartbeat, enableheartbeattimer, disableheartbeattimer, heartbeat, setecommerceview, removeecommerceitem, getecommerceitems, clearecommercecart, addecommerceitem, ecommerce, removedownloadclasses, getdownloadextensions, getdownloadclasses, tracklink, adddownloadclasses, setlinkclasses, setignoreclasses, setdownloadextensions, setdownloadclasses, removedownloadextensions, getconfigdownloadextensions, enablelinktracking, disablelinktracking, adddownloadextensions, storecustomvariablesincookie, getcustomvariable, deletecustomvariable, variables, setcustomdimensionvalue, getcustomdimensionvalue, deletecustomdimension, getcustomdimension, dimensions, setcrossdomainlinkingtimeout, iscrossdomainlinkingenabled, getcrossdomainlinkingurlparameter, enablecrossdomainlinking, customcrossdomainlinkvisitoridgetter, disablecrossdomainlinking, customcrossdomainlinkdecorator, domain, linking, setvisitorcookietimeout, setvisitoridcookie, setsessioncookietimeout, setsecurecookie, setcookiepath, setreferralcookietimeout, setcookienameprefix, setcookiedomain, hascookies, getcookiepath, getsessioncookietimeout, getcookiedomain, getconfigvisitorcookietimeout, enablecookies, disablecookies, deletecookies, cookie, trackvisiblecontentimpressions, trackcontentinteractionnode, trackcontentimpressionswithinnode, trackallcontentimpressions, logallcontentblocksonpage, tracksitesearch, trackpageview, trackevent, basic, events, plain, javascript, vue, nuxt, next, gatsby, angular, frameworks, browser, jump, agents, visit, https, developers, llms, txt, index, all, formatted, markdown, endpoints, openapi,
Text of the page (random words):
sendtransaction for ai agents visit https developers piwik pro llms txt for an index of all pages formatted in markdown and endpoints in openapi jump to content home docs web api changelog log in docs log in home docs web api changelog sendtransaction browser js api frameworks angular gatsby next js nuxt react vue getting started plain javascript methods basic events trackgoal trackevent trackpageview tracksitesearch content tracking logallcontentblocksonpage trackallcontentimpressions trackcontentimpressionswithinnode trackcontentimpression trackcontentinteractionnode trackcontentinteraction trackvisiblecontentimpressions cookie management deletecookies disablecookies enablecookies getconfigvisitorcookietimeout getcookiedomain getsessioncookietimeout getcookiepath hascookies setcookiedomain setcookienameprefix setreferralcookietimeout setcookiepath setsecurecookie setsessioncookietimeout setvisitoridcookie setvisitorcookietimeout cross domain linking customcrossdomainlinkdecorator disablecrossdomainlinking customcrossdomainlinkvisitoridgetter enablecrossdomainlinking getcrossdomainlinkingurlparameter iscrossdomainlinkingenabled setcrossdomainlinkingtimeout custom dimensions getcustomdimension deletecustomdimension setcustomdimension getcustomdimensionvalue setcustomdimensionvalue custom variables deletecustomvariable getcustomvariable storecustomvariablesincookie setcustomvariable download and outlink adddownloadextensions disablelinktracking enablelinktracking getconfigdownloadextensions removedownloadextensions setdownloadclasses setdownloadextensions setignoreclasses setlinkclasses adddownloadclasses tracklink getdownloadclasses getdownloadextensions removedownloadclasses ecommerce addecommerceitem clearecommercecart ecommerceaddtocart ecommercecartupdate ecommerceorder ecommerceproductdetailview getecommerceitems ecommerceremovefromcart removeecommerceitem setecommerceview trackecommercecartupdate trackecommerceorder heartbeat disableheartbeattimer enableheartbeattimer trackheartbeat miscellaneous addlistener appendtotrackingurl getconfigidpageview enablejserrortracking getnumtrackedpageviews gettrackingsourceprovider gettrackingsource killframe ping redirectfile setcountprerendered setdonottrack setcustomrequestprocessing setgenerationtimems setrequestcontenttype setrequestmethod settrackingsource settrackingsourceprovider trackerror tracking client configuration disableperformancetracking addtracker getcurrenturl discardhashtag getlinktrackingtimer getpiwikurl getsiteid getdomains gettimingdatasamplingonpageload gettrackerurl setapiurl setenableclienthints setcustomurl setdocumenttitle setdomains setlinktrackingtimer setreferrerurl setsiteid setsiteinspectorsetup settimingdatasamplingonpageload settrackerurl user management deanonymizeuser getuserid getvisitorid resetuserid getvisitorinfo setiptracking setsessionidstrictprivacymode setuserid setuserisanonymous consent manager js api overview custom consent form methods getcompliancesettings getcompliancetypes getnewcompliancetypes openconsentform senddatarequest setcompliancesettings setinitialcompliancesettings trackagreetoallclick trackclosebuttonclick trackmainformview trackprivacypolicylinkview trackrejectallclick trackreminderwidgetview tracksavechoicesclick android sdk methods audiencemanagergetprofileattributes audiencemanagersetprofileattribute checkaudiencemembership dispatch ecommerceaddtocart ecommercecartupdate ecommerceorder ecommerceproductdetailview ecommerceremovefromcart getsessionhash getdeviceid getuseragent isanonymizationon items additem setanonymizationstate setapplicationdomain setdispatchinterval setdeviceid setdispatchmode setdispatchtimeout setdryruntarget setincludedefaultcustomvars setofflinecacheage setofflinecachesize setprefixing setoptout setsessiontimeout setsessionhash settrafficsourcename settrafficsourceversion setusermail setuserid setvisitorid setvisitoridfromdeeplink setvisitoridlifetime track applicationinstall startnewsession track applicationupdate track campaign track dimension track download track event track exception track goal track impression track order track interaction track outlink track screen track screens track search track socialinteraction track sendapplicationdownload track variable track visitvariables getting started using piwik pro sdk cross platform tracking advanced usage flutter sdk methods checkaudiencemembership dispatch dryrun getsessionhash getuseragent getvisitoridlifetime readuserprofileattributes optout setanonymizationstate setdispatchinterval setincludedefaultvariables setsessionhash setuseremail setsessiontimeout setuserid setvisitorid setvisitoridfromdeeplink trackappinstall setvisitoridlifetime trackapplicationinstall trackapplicationupdate trackcampaign trackcontentimpression trackcontentinteraction trackcustomdimension trackcustomvariable trackcustomevent trackdownload trackecommerceaddtocart trackecommercecartupdate trackecommerceorder trackecommerceproductdetailview trackecommercetransaction trackecommerceremovefromcart trackexception trackgoal trackprofileattribute trackoutlink trackscreen tracksearch tracksocialinteraction getting started using the flutter sdk advanced usage cross platform tracking ios sdk getting started methods additem audiencemanagergetprofileattributes checkmembership deviceid dispatchinterval dryrun ecommerceaddtocart ecommercecartupdate ecommerceorder ecommerceproductdetailview ecommerceremovefromcart includedefaultcustomvariable isanonymizationenabled maxageofqueuedevents maxnumberofqueuedevents optout sendapplicationdownload sendcampaign sendcontentimpression sendcontentinteraction senddownload sendevent sendexception sendgoal sendoutlink sendaudiencemanagerattribute sendsearch sendsocialinteraction sendtransaction sendview sendviews sessiontimeout setcustomdimension setcustomvariable startnewsession useremail userid visitorid applicationinstall applicationupdate dispatch deletequeuedevents setvisitoridfrom useragent appname appversion samplerate eventsperrequest visitoridlifetime isprefixingenabled sessionhash sourcetrafficname sourcetrafficversion using piwik pro sdk cross platform tracking advanced usage react native sdk advanced usage getting started methods checkaudiencemembership dispatch getdispatchinterval getdryrun getincludedefaultcustomvariables getoptout getprofileattributes getsessionhash getsessiontimeout getuseragent getuseremail getuserid getvisitorid isanonymizationon isprefixingon setanonymizationstate setdispatchinterval setdryrun setincludedefaultcustomvariables setoptout setprefixing setsessionhash setsessiontimeout setuseremail setuserid setvisitorid setvisitoridfromdeeplink setvisitoridlifetime startnewsession trackapplicationinstall trackapplicationupdate trackcampaign trackcustomevent trackdownload trackecommerce trackecommerceaddtocart trackecommercecartupdate trackecommerceorder trackecommerceproductdetailview trackecommerceremovefromcart trackexception trackgoal trackimpression trackoutlink trackinteraction trackprofileattributes trackscreen tracksearch tracksocialinteraction using piwik pro sdk for react native cross platform tracking other integrations accelerated mobile pages amp integration progressive web applications integration pwa web log analytics data activation custom attributes identity resolution profile building data import other custom popup examples content security policy csp custom data layer name skip link tracking with the data disable delay attribute mcp server sendtransaction ️ deprecated this method is no longer recommended use the ecommerceorder method instead the sendtransaction method tracks a confirmed order syntax swift objective c let transaction piwiktransaction builder in builder identifier orderid builder grandtotal ordergrandtotal builder subtotal ordersubtotal builder tax ordertax builder shippingcost ordershipping builder discount orderdiscount if let transaction piwiktracker sharedinstance sendtransaction transaction transaction piwiktransaction transaction piwiktransaction transactionwithblock piwiktransactionbuilder builder builder identifier orderid builder grandtotal ordergrandtotal builder subtotal ordersubtotal builder tax ordertax builder shippingcost ordershipping builder discount orderdiscount if transaction piwiktracker sharedinstance sendtransaction transaction parameters parameter type required description orderid string yes the unique order id ordergrandtotal nsnumber yes total payment for the order includes tax shipping and discounts format 1 100 of the base currency unit example 100 is 1 usd ordersubtotal nsnumber no payment for the order without shipping format 1 100 of the base currency unit example 100 is 1 usd ordertax nsnumber no tax included in the order format 1 100 of the base currency unit example 100 is 1 usd ordershipping nsnumber no shipping costs for the order format 1 100 of the base currency unit example 100 is 1 usd orderdiscount nsnumber no discounts included in the order format 1 100 of the base currency unit example 100 is 1 usd examples to track a confirmed order swift objective c let transaction piwiktransaction builder in builder identifier 43967392 builder grandtotal 525000 builder subtotal 520000 builder tax 97000 builder shippingcost 15000 builder discount 10000 builder additem sku 584340 name specialized stumpjumper category mountain bike price 500000 quantity 1 builder additem sku 460923 name specialized chamonix category helmets price 20000 quantity 1 if let transaction piwiktracker sharedinstance sendtransaction transaction transaction piwiktransaction transaction piwiktransaction transactionwithblock piwiktransactionbuilder builder builder identifier 43967392 builder grandtotal 525000 builder subtotal 520000 builder tax 97000 builder shippingcost 15000 builder discount 10000 builder additemwithsku 584340 name specialized stumpjumper category mountain bike price 500000 quantity 1 builder additemwithsku 460923 name specialized chamonix category helmets price 20000 quantity 1 if transaction piwiktracker sharedinstance sendtransaction transaction notes this method works with the legacy piwiktransactionbuilder api build a piwiktransaction optionally adding items with additem then call sendtransaction transaction to dispatch the order to piwik pro the piwiktransaction factory s build can return nil if the order id or grand total is missing or if any line item is invalid do not call sendtransaction transaction with a nil transaction unwrap or validate the instance first for example with if let if you add line items each item must have a non empty sku or the transaction will not build the transaction builder does not persist any state between calls each piwiktransaction you create is independent and starts empty for new code use ecommerceorder with the ecommerceproducts builder instead related methods additem ecommerceorder copy page syntax parameters examples notes related methods
|