Comments (7)
Working on it
from ahoy.js.
There's no way to do this right now, but happy to accept a PR (will need to get it added to Ahoy Ruby project as well). Maybe something like:
ahoy.setUserId(1);
from ahoy.js.
I'd also be really interested in this feature - @gknedo looking forward to seeing the result!!!
from ahoy.js.
@nabilfreeman WIP, working o ruby gem now.
from ahoy.js.
Is this available?
from ahoy.js.
Still interested too... lol. Prepare yourself for the following crime against humanity...
I wrote a Lambda that checks the Ahoy tables every 30 min and copies properties.user_id
to the user_id
column in both events and visits table. Works great as our throughput is currently below 1m rows per 30min, but very wasteful and kind of dumb to maintain.
(This is because we don't run rails but still use Ahoy separately from our Node stack)
from ahoy.js.
This was my hacky solution using the ruby gem.
def track_event(data)
if data[:properties]["shop_id"]
data[:shop_id] = data[:properties]["shop_id"]
data[:properties].delete("shop_id")
end
super(data)
end
I set the user_id (or shop id in my case) as a property, then i listen track_event, and set the shop if if there is a shop id property
from ahoy.js.
Related Issues (20)
- ahoy.js does not track click events for a-tags that contain HTML tags. Is it intentional? HOT 3
- Click event is duplicated when redirect from A.html to B.html HOT 2
- Add the option to keep the ahoy_visit cookie alive HOT 2
- Why visitsUrl and eventsUrl should use double // on my side HOT 1
- Update the no-jquery branch HOT 1
- Support skipping certain tracked events inside a [data-no-track] tagged element HOT 10
- TypeError: Illegal invocation HOT 3
- Add debug messaging around sendbeacon HOT 1
- Cross-Origin Read Blocking (CORB) blocked cross-origin response HOT 1
- Why did you remove #trackAll ? (just curious) HOT 2
- [Idea] Remove TailwindCSS classes from "class" attribute in ahoy.js HOT 1
- Open to moving some helper functions to exports?
- [Idea] The ability to update a visit, or be able to start a visit programmatically.
- Next js and ahoy HOT 1
- Expo Support? HOT 2
- Using useBeacon: true results in NS_ERROR_FAILURES on events HOT 1
- [Idea] Extra attributes on clicks HOT 1
- [idea] trackSubmits could include the action url
- [help] NextJS + Ahoy
- Issue with SSR: window is not defined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ahoy.js.