rudderlabs / gatsby-plugin-rudderstack

Gatsby plugin to send customer event data to RudderStack
http://rudderstack.com/
MIT License
3 stars 4 forks source link

[ENHANCEMENT] Add Lamda Function for Ad Blockers & Page Speed #5

Closed cwray-tech closed 1 year ago

cwray-tech commented 3 years ago

Is your feature request related to a problem? Please describe. I am adding this feature request as an issue, so that we can track progress on this, and add a pull to relate this to.

Describe the solution you'd like Based on the original project requirements, we need the ability to proxy events through a Lambda Function, if a site developer so chooses.

This is to outsource browser work, and send data that needs to be sent to Rudderstack to a Lambda function, so that the function can take care of sending the data to Rudderstack.

Using this approach, developers can make event tracking more asynchronous and therefore speed up site speed.

cwray-tech commented 3 years ago

Gavin and Kostas,

I would like to start a conversation about the Lambda Function feature here on Github to hear more of your thoughts about this, and to share my concerns and thinking.

I am still not completely convinced that doing this feature right now is the best for the Gatsby plugin integration.

Below I will share my thoughts as to what are my concerns, and how I think we ought to go forward with it.

I am not set in stone on this, and of course will do what you believe to be the best route.

Concerns

Ideas

As I before mentioned, I am not opposed completely to going forward, and I will do this integration as I have time if you do decide to go ahead.

Thanks so much, and looking forward to hearing your thoughts and input on this as well as any other team members involved.

Thank you! Chris

@thtmnisamnstr

thtmnisamnstr commented 3 years ago

I'd still like it. Nobody has requested it yet, but it is an issue that sites with event instrumentation are known to run into. It should be configurable on the Gatsby plugin, so you could choose to not configure it and use the Gatsby plugin as it works currently, or you could choose to configure for the Netlify function and only then route through Netlify.

I completely get your concerns, but I think it still makes sense to move forward with it.

cwray-tech commented 3 years ago

@thtmnisamnstr great! I will need a couple more weeks to finish this then. Thanks so much for all your patience with me so far on this project. I've greatly appreciated it.

cwray-tech commented 3 years ago

@mister-josuecedeno here is the issue for the plugin side that is for implementing the Lambda function with the Gatsby plugin.

doc-l commented 3 years ago

I'm not sure what problem this solves? Using API Gateway proxies (and my PR #9) you can hide rudderstack completely behind proxies and it works even with ad blockers turned on. No lambda function needed (tested with ublock origin).