javascript - Inserting GTM variable instead of HTML object -
i'm trying implement marketing tag on website value needed on tag should come html object, although when trying replace gtm variable, no data transferred tag. these instructions documentation: for google tag manager (gtm) integration, create html-object (jquery required) containing , replace variables real data values (cf. next section). html-object @ checkout page <div id='transactionstring' data-transaction-string='data'></div> create custom html-tag in gtm following code snippet , pass data new html object. finally, can add checkout page trigger rules of gtm. create custom html tag in gtm <script src="https://tracking.crealytics.com/lib/multi_conversion.min.js"></script> <script type="text/javascript"> var transactionstring = $("#transactionstring").data("transaction-string"); __multi_conversion_tracking(70, "transactionstring"); </script> ...