Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WriteKey being tracked in segment data #13

Open
nitinprakash96 opened this issue Oct 11, 2019 · 2 comments
Open

WriteKey being tracked in segment data #13

nitinprakash96 opened this issue Oct 11, 2019 · 2 comments

Comments

@nitinprakash96
Copy link

I'm not sure if this is the right forum for this but when we track events on the server side and forward the data to segment, along with common fields and defined metadata even the writekey is being forwarded.
Eg:

{
  "context": {
    "library": {
      "name": "analytics-clj",
      "version": "0.8.0"
    }
  },
  "event": "EventType",
  "integrations": {},
  "messageId": "xxxxxxxxx",
  "originalTimestamp": "2019-10-01T06:33:31.593Z",
  "properties": {
       "key1": "value1"
  },
  "receivedAt": "2019-10-01T06:33:36.745Z",
  "sentAt": "2019-10-01T06:33:32.900Z",
  "timestamp": "2019-10-01T06:33:35.438Z",
  "type": "track",
  "userId": "abcdef",
  "writeKey": "123456789"
}

I don't think this is the right behaviour. Or is there something that I'm supposed to do in order to handle write key explicitly?

@bostonaholic
Copy link
Contributor

Thanks for asking about this. I'll take a look at this issue soon and get back to you.

@bostonaholic
Copy link
Contributor

@nitinprakash96 I think this is expected behavior for a couple of reasons.

  1. This library is a simple wrapper around analytics-java. There is nothing this library is doing with the writeKey other than passing it directly to the underlying Java implementation.
  2. I would suspect that this "secret" key is required to send to Segment so they know from where the data is coming from.

Is there a reason you think this library shouldn't be behaving in this way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants