Skip to content

Instantly share code, notes, and snippets.


Julian Tauert jlntrt

View GitHub Profile
jlntrt / application_controller.rb
Created May 26, 2020
Server Side Tracking with Matomo and Rails
View application_controller.rb
require 'net/http'
require 'uri'
class ApplicationController < ActionController::Base
after_action :track_request
def track_request
uri = URI('https://<matomo_url>/piwik.php')
You can’t perform that action at this time.