I’ve integrated Amplitude via the Marketing Browser JS SDK on the website.
I also turned on the default tracking events.
But I can’t seem to see any data on amplitude. Meanwhile, the ingestion debugger looks fine
Any thoughts?
Hi Marc Messer,
It looks like the Identify calls with user properties are coming in fine, but I’m not seeing any Events get sent. If you look at the chart on the right side, the blue bars that would show “Events” are missing. While we are receiving the User Property calls, the User Property data needs an Event to attach itself to first for it to be available for queries in charts.
Can you please try double-checking the instrumentation of the default event tracking with the SDK and make sure it matches with our documentation? It may also be worth double-checking to make sure the correct API key for your project is being used.
Please let us know if you’ve already checked this and we’ll find another way to look into this with you. Thanks!
I believe it is setup correctly.
I have tried both pageViewTracking: true and defaultEvents: true
<script type="text/javascript">!function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:[]};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},o=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))}}},i=function(e){for(var t=0;t<m.length;t++)o(e,m[t],!1);for(var r=0;r<y.length;r++)o(e,y[r],!0)};r.invoked=!0;var a=t.createElement("script");a.type="text/javascript",a.integrity="sha384-PPfHw98myKtJkA9OdPBMQ6n8yvUaYk0EyUQccFSIQGmB05K6aAMZwvv8z50a5hT2",a.crossOrigin="anonymous",a.async=!0,a.src="https://cdn.amplitude.com/libs/marketing-analytics-browser-0.3.2-min.js.gz",a.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var c=t.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c);for(var u=function(){return this._q=[],this},p=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],l=0;l<p.length;l++)n(u,p[l]);r.Identify=u;for(var d=function(){return this._q=[],this},v=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setEventProperties"],f=0;f<v.length;f++)n(d,v[f]);r.Revenue=d;var m=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset"],y=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];i(r),r.createInstance=function(){var e=r._iq.push({_q:[]})-1;return i(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
amplitude.init("REMOVED API KEY FOR POST", { pageViewTracking: true});
Thanks tsegalla and Marc Messer, I’ve just sent this to our support team for further review.
I also went back and took a look at the amplitude extension. It looks like the config settings might be getting pushed to the optional user id.
I’ve tested both
amplitude.init("REMOVED API KEY FOR POST", ‘’, { defaultEvents: true});
amplitude.init("REMOVED API KEY FOR POST", null, { defaultEvents: true});
But no such luck.
Hello Marc Messer happy to help!
Would you be so kind as to sharing a link to where the SDK has been implemented, please?
Hi there! Have you tried using the User Lookup feature in Amplitude to see if any events are being captured? If not, I would recommend trying that. Additionally, make sure you have cleared your cache and cookies and that your browser is up-to-date. If none of these solutions work, feel free to reach out with your URL, Org ID, Project ID, and email address for the Amplitude Org so we can take a closer look.
Ref:
https://www.docs.developers.amplitude.com/data/debugger/
https://www.advancedbionutritionals.com
Sorry about the delayed response.
Hi Marc Messer Thanks for circling back. Do you need additional support?
Yeah, I have solved nothing. I’m currently in talks with sales to buy this product. But this has me dead in the water.
I tried all of this before I posted to the forum.
Thanks for following up Marc Messer I’ll make sure to loop in our support team, and tagging my colleague Esther Trapadoux as well.
I am running into a loop when attempting to import data from BigQuery. At origin, my data is already in milliseconds since epoch. If I query: event_time as time, I get the error: 1.'time' column should be a TIMESTAMP_NTZ column (Snowflake) or a TIMESTAMP column (BigQuery). example for the type of 'time' column is…
How do I transfer data from one amplitude account to another? It seems all the community chats about this have completely broken links. Easy to export, no way to import, very frustrating. :(
When using @amplitude/plugin-web-vitals-browser with Create React App v4 (react-scripts@4.0.3), the build fails with: ./node_modules/@amplitude/plugin-web-vitals-browser/node_modules/web-vitals/dist/web-vitals.js<br /><br />SyntaxError:…
Hello, I'm using SpringBoot and Kotlin to integrate with the Amplitude Export API. The official Amplitude documentation (https://amplitude.com/docs/apis/analytics/export) states that "data is available to export at a minimum within 2 hours of when the servers received it." However, there's no clear information about the…
Hello, Is there a way to make a query like: “Give me all the users that have the user property X equal to 10”, by using just any of the APIs, without making a cohort first through the Amplitude’s UI? Thank you!