PageSourceSearch

https://www.tryclub.com/assets/controllers/search_engine/track_conversion_controller-c12f2ff4.js

js tryclub.com collected 2026-09-25 23:01:27 UTC 581 bytes, 21 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2import { post } from "@rails/request.js"
3
4export default class extends Controller {
5  static values = { endpointUrl: String }
6
7  connect() {
8    this.token = document.querySelector('meta[name="csrf-token"]').content;
9  }
10
11  trackConversion = async (event) => {
12    await post(this.endpointUrlValue, {
13      headers: {
14        'Content-Type': 'application/json',
15        'X-CSRF-Token': this.token
16      },
17      responseKind: 'application/json',
18      body: JSON.stringify({ record_id: event.target.dataset.recordId }),
19    })
20  }
21}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.