Hello people! I am tryng to send ecommerce events ...
# support
a
Hello people! I am tryng to send ecommerce events from rudderstack to bigquery, yet those events are not sent? Only some little track events (id, screen dimension) but not some specific ones for ecommerce. I am using webflow custom code Thank you. (I know it might be something stupid like setting the sdk call)
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
q
@able-wall-33062 Can you share your instrumentation code? and payload that you see in live events for SDK and bigquery? What version of SDK you are using?
a
Hi @quiet-wolf-72320, thank you for your response. I am using webflow custom code section, not much instrumentation code
{
"anonymousId": "3871af15-e3fe-424a-bc94-1c40a779d59a",
"channel": "web",
"context": {
"app": {
"name": "RudderLabs JavaScript SDK",
"namespace": "com.rudderlabs.javascript",
"version": "2.25.0"
},
"campaign": {},
"library": {
"name": "RudderLabs JavaScript SDK",
"version": "2.25.0"
},
"locale": "en-US",
"os": {
"name": "",
"version": ""
},
"page": {
"initial_referrer": "https://www.google.com/",
"initial_referring_domain": "www.google.com",
"path": "/product/recz2EEpEmhtxJlHR",
"referrer": "https://www.fenyxhome.com/shop",
"referring_domain": "www.fenyxhome.com",
"search": "",
"tab_url": "https://www.fenyxhome.com/product/recz2EEpEmhtxJlHR",
"title": "Minimalistisches Ecksofa",
"url": "https://www.fenyxhome.com/product/recz2EEpEmhtxJlHR"
},
"screen": {
"density": 1.25,
"height": 864,
"innerHeight": 792,
"innerWidth": 1536,
"width": 1536
},
"sessionId": 1677081684349,
"traits": {},
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"
},
"integrations": {
"All": true
},
"messageId": "8036d483-1125-4336-bd3f-18bb785c328a",
"originalTimestamp": "2023-02-22T16:18:52.930Z",
"properties": {
"initial_referrer": "https://www.google.com/",
"initial_referring_domain": "www.google.com",
"path": "/product/recz2EEpEmhtxJlHR",
"referrer": "https://www.fenyxhome.com/shop",
"referring_domain": "www.fenyxhome.com",
"search": "",
"tab_url": "https://www.fenyxhome.com/product/recz2EEpEmhtxJlHR",
"title": "Minimalistisches Ecksofa",
"url": "https://www.fenyxhome.com/product/recz2EEpEmhtxJlHR"
},
"rudderId": "1a827b31-c17c-4d51-9338-7f2284c77e5a",
"sentAt": "2023-02-22T16:18:52.945Z",
"type": "page",
"userId": ""
}
This is what I see sent from my javascript sdk on webflow to rudderstack I would like to see ecommerce events, but I am not able to properly deduct how to do that
<!-- Rudderstack integration  -->
<script>
rudderanalytics = window.rudderanalytics = [];
var methods = [
"load",
"page",
"track",
"identify",
"alias",
"group",
"ready",
"reset",
"getAnonymousId",
"setAnonymousId",
"getUserId",
"getUserTraits",
"getGroupId",
"getGroupTraits",
"startSession",
"endSession",
"getSessionId"
];
for (var i = 0; i < methods.length; i++) {
var method = methods[i];
rudderanalytics[method] = (function (methodName) {
return function () {
rudderanalytics.push(
[methodName].concat(Array.prototype.slice.call(arguments))
);
};
})(method);
}
rudderanalytics.load("APIHERE","DATAPLANE HERE");
rudderanalytics.page();
</script>
<script>
function myLearnMoreFunction() {
rudderanalytics.track("Add-to-cart-clicked");
}
</script>
<script src="https://cdn.rudderlabs.com/v1.1/rudder-analytics.min.js"></script>
<!-- End Rudderstack integration -->
I would like to track ecommerce events, but I am doing something wrong! I tried to put a new function to track the add to track button but it doesn't work. Finally my question is: Considering this code, how to record ecommerce events?