DEV Community

_s._hyn
_s._hyn

Posted on

5 Things About Analytics That Nobody Warns You About

I sent the same link to three Slack channels last Tuesday and realized I had zero way of knowing which one drove the 47 signups I saw that morning. Honestly, it was a bit of a wake-up call - I'd been relying on basic analytics for months, and this was the first time I'd really needed to dig deeper. Look, I know I'm not the only one who's been in this situation, but it got me thinking about all the little mistakes I'd been making with my analytics setup.

Why I Was Flying Blind

I was using a basic tracking script on my website, but it wasn't giving me the level of detail I needed. For example, I could see that I had 200 visits from the US, but I had no idea which specific links were driving that traffic. I tried using curl to test my links and see where they were redirecting, but it wasn't giving me the full picture. I even tried using Python's requests library to scrape some data, but it was slow going and I wasn't sure if I was doing it right.

The Spreadsheet that Saved My Sanity

I decided to try using a URL shortener to get more insight into my link traffic. I was looking at the device breakdown in LinkCut and noticed that a disproportionate number of my clicks were coming from mobile devices - 27% of my total traffic, to be exact. This was weird, because my website is definitely not optimized for mobile (I still don't fully understand why this is the case, but I'm working on it). I also started using custom slugs for my links, which made it easier to keep track of which links were being shared where. For instance, I created a link with the slug /summer-sale and shared it on Facebook, and then created another link with the slug /summer-sale-twitter and shared it on Twitter. This way, I could see which platform was driving more traffic to my sale page.

What Happened Next

After setting up LinkCut, I started to see some really interesting trends in my data. For example, I noticed that my links were getting a 23% bounce rate on Fridays, but only a 12% bounce rate on Mondays. I'm not sure what to make of this, but it's definitely given me some food for thought. I also started to experiment with link expiry dates, which has been helpful for tracking the effectiveness of my promotions. For instance, I created a link that expired after 24 hours, and saw that it got 50 clicks in that time period - not bad, considering it was just a test.

When This Approach Falls Apart

The thing is, using a URL shortener isn't a silver bullet - there are definitely some caveats to consider. For one thing, if you're dealing with a huge volume of traffic, you may need to upgrade to a paid plan to get the level of detail you need. I'm also not sure how well this approach would work for tracking traffic from email campaigns, since the links are often embedded in the email itself. And of course, there's always the risk that your links will get flagged as spam - although I haven't had this problem yet, knock on wood.

I'm still figuring out the best way to use analytics for my side project, and I'm sure I'll make plenty of mistakes along the way. Has anyone else hit this exact wall, and if so, how did you overcome it?

Top comments (0)