Closed markojak closed 3 years ago
Interesting...
This plugin is really just loading the https://cdn.secta.ai/3.1.1/q4E5lh.js
script https://github.com/DavidWells/analytics/blob/a7bf790f23febd68d5f45926384c7d64df4336b3/packages/analytics-plugin-snowplow/src/browser.js#L90 and mapping calls to thee underlying snowplow SDK.
It's possible this forceSecureTracker
setting doesn't exist on the snowplow tracker version you are using (v3) https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-trackers/browser-tracker/browser-tracker-v3-reference/tracker-setup/initialization-options/ I don't see that in their docs
Thanks @DavidWells So the "protocol" flag is a parameter for the plug-in and anything under trackerSettings {} is just passed to the JavaScript tracker being loaded?
If protocol is 'https' what is that then forcing?
Hi @DavidWells let's go ahead and close this ticket. The issue is that the tracker defaults to the same protocol as the page that is loading the tracker
This means if we load the tracker in development environments it will send events over HTTP Post
As also described it looks like forceSecure is no longer used in v3 -
I too have this issue.. tried using forceSecure and potocol and still sends to http from my local development environment.. Our SP instance is on AWS and only has https.. My local is not running https.. Forcing to use the calling protocol makes this package useless unfortunately.. All browsers are forcing https these days, why wouldn't you allow us to change to https?
This is a Snowplow issue not an Analytics issue. ForceSecureTracker is a Snowplow thing as @DavidWells commented.
You can run your local with HTTPS using something like tunnelto.dev (I'm using this now to test local Snowplow)
Without this I anyways get a CORS error from Snowplow
I've finally managed to deploy Snowplow Analytics and self hosted the Javascript Tracker (v3.1.1) and am using the following configuration.
I have tried using
forceSecureTracker
set to true andprotocol
set to https but the analytics plugin seems to be insisting on using HTTP (see error below)Does anyone know if I'm doing something wrong?
In console I am seeing: VM3536:1 POST http://sp.secta.ai/com.snowplowanalytics.snowplow/tp2 net::ERR_FAILED
The strange thing is that even if not using HTTPS I should not be getting ERR_FAILED (see
curl
below that shows the right output). Are these two separate issues?Further Troubleshooting you can see that the Collector is working properly: