PageSourceSearch

https://www.farmers.com/content/dam/farmers/vendor/google/search/clickdataapi.js?v=639258157412337403

js farmers.com collected 2026-09-24 09:22:37 UTC 969 bytes, 47 lines download raw bytes

1  const sendClickData = async (clickPayload) => {
2  try {
3    const response = await fetch ('https://cta-search-dev-98064982384.us-central1.run.app/api/clickData', {
4      method: 'POST',
5      headers: {
6        'Content-Type': 'application/json',
7      },
8      body: JSON.stringify(clickPayload),
9    });
10
11    if (!response.ok) {
12      throw new Error('Failed to send click data');
13    }
14
15    const data = await response.json();
16    console.log('Click data sent successfully:', data);
17
18  } catch (error) {
19    console.error('Error sending click data:', error);
20  }
21};
22  
23const handleLinkClick = async (
24  link,
25  title,
26  suggestionsClicked,
27  buttonClicked,
28  isInitialClick,
29  userId,
30  sessionId,
31  savedQuery,
32  queryId
33) => {
34    const clickPayload = {
35      userId,
36      sessionId,
37      savedQuery,
38      queryId,
39      link,
40      title,
41      suggestionsClicked,
42      buttonClicked,
43      isInitialClick
44    };
45
46    await sendClickData(clickPayload);
47  };

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.