hearthsim / django-reflinks Goto Github PK
View Code? Open in Web Editor NEWReferral links implementation for Django
License: MIT License
Referral links implementation for Django
License: MIT License
One of my customers uses Hubspot for their referrals, which adds a tremendous amount of cruft to their tracking links. For instance, this is the automated link created by a HubSpot email to my home page (sanitized example which was originally 304 characters long):
example.com/?utm_campaign=some+string+here&utm_source=another_short_string&utm_medium=email&utm_content=123456789&_hsenc=100_CHARACTER_RANDOM_STRING&_hsmi=1234567
The default URLField length is 200 characters, and that gets taken up very quickly if a link has a 100 character random string as part of it.
What I've done to temporarily fix this is increase the max_length
parameter of the ReferralHit.next
URLField to 500 characters. I thought that perhaps stripping the query parameters from the self.next
parameter on the ReferralHit
model would be another solution. Any thoughts? I'd be happy to provide a PR if one is desired!
Hi! ๐
I see that some work has been done to create version 0.6.0.
Are there any plans to release it on PyPI?
Thank you!
Thanks for building this!
In a Chrome incognito window, REMOTE_ADDR
is a null value so this library throws the IntegrityError above.
I suggest allowing null=True, blank=True
on this field to allow blank values. Happy to add a PR if that's helpful! Let me know if any suggestions or concerns?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.