parmesancrabs

joined 1 year ago
[–] [email protected] 6 points 7 months ago (5 children)

Have a look for USB-C docks that don’t specifically mention “for the steam deck”. They’re all functionally the same but I found a steam deck owner tax when they reference Steam decks in product titles. For example, I picked up a Sabrent dock where reviews mentioned steam deck.

[–] [email protected] 2 points 1 year ago

I picked this up today, played a few rounds, its a great little game and I think it’ll replace zombie dice for me.

[–] [email protected] 1 points 1 year ago

I’ve never heard of this before but reading up on it, it sounds like a really tactical game! Loving the multi-coloured print job, you’ve done really well with it.

[–] [email protected] 1 points 1 year ago

Can confirm, just bought it and its running without a problem on a 1080TI, it just works 👍

[–] [email protected] 2 points 1 year ago

After reading this post a few days back, I was inspired to get some Ghee and try it out. Absolutely delicious, thank you @[email protected]!

[–] [email protected] 1 points 1 year ago

Or maybe the lemmy source code should include a canonical tag to the original host’s post?

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Would it be a better idea to exclude any URLs that are similar to /c/*@*.* I think that would block external communities but keep local ones still indexable in their native locations.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (2 children)

Even if its “just” to get a notably higher refresh rate. If you’re considering around 4090 kind of prices a lovely higher refresh rate 1440p monitor would be a great sweet spot to consider.

Though I’d maybe say different if its business expense to earn you revenue and gaming is only lighter touch.

[–] [email protected] 1 points 1 year ago

For my setup, I used UDP port 443. For the vast majority of situations it works well as TCP 443 is for secure internet traffic. It seems admins often blanket 443 port open regardless of protocol 🙃

[–] [email protected] 1 points 1 year ago

Yeah exactly that 👍 It's a self hosted web analytics platform but also has Tag Management available via a first party plugin. It is very comparable to GTM and if you have some frontend JavaScript knowledge it has everything you'd reasonably need I think.

[–] [email protected] 1 points 1 year ago

Hey @[email protected], I'll keep this on the post for now as its generic content at the moment.

There are two ways I'm going to suggest:

#1 Plausible's library

You mentioned using Plausible. did you know that if you include their custom event JS library you can just add class names to existing elements? If you're able to adjust the class names on your site this would be a nice and simple way to do things.

For example:

<button class="single_add_to_cart_button button alt plausible-event-name--Affiliate+Click plausible-event--product=product+name">Buy me</button>

For it to work you need to update your Plausible library to https://your-domain.com/js/script.tagged-events.js

The main issue here is that you have dynamic content being fed back to Plausible at the same time, which this process wouldn't help with unless you can tell you CMS to drop the name of a page's product into the class list. The example above shows what this would look like.

#2 - Custom JavaScript

The other route is just adding in custom JS. We could create a fun little library to add lots of customisation in, but we can keep this quite simple, by pasting the following code at the bottom of a page's body element.

(function(){
  var target_elements = document.querySelectorAll(".single_add_to_cart_button");
  for (var i=0; i<target_elements.length; i++) {
    target_elements[i].addEventListener("click", function(){ plausible("Affiliate Click", { props: {product: document.title} }); })
  }
})();

This code will:

  • Look for all elements on the page that own a class name of "single_add_to_cart_button" (they can have other class names too)
  • Look through all found, if any, and attach a click listener to those elements
  • When a user clicks, the "plausible" function will be called and the desired parameters passed to it

If you want to know more about CSS selectors, W3Schools offers some simple examples to learn from.

You'll notice that this just covers the first of the two examples you gave. For your second example it would be good to have some additional information so that we can refine the click listener. For example, are each of these "link" or "button" elements, such as:

<a href="http://other-domain.com">View on Etsy</a>

If you're happy to DM me an example URL on this site, I can give you a complete example for the second set of click listeners?

view more: next ›