PageSourceSearch

https://www.rd.com/wp-content/plugins/tmbi-data-analytics/js/GoogleAnalytics/AccountEvent.js?ver=8.5.1

js rd.com collected 2026-09-24 07:14:27 UTC 1,788 bytes, 69 lines download raw bytes

1/**
2 * Account Events.
3 *
4 * @package tmbi-account-events
5 */
6
7/**
8 * Filter to handle Registration Event
9 */
10wp.hooks.addFilter(
11	'tda_registration_start_filter',
12	'tmbi-data-analytics',
13	function( eventData, digitalData ) {
14		var payload = {};
15
16		if ( undefined !== digitalData.registration && undefined !== digitalData.registration.newRegSource ) {
17			payload[ 'cd_registration_type' ] = digitalData.registration.newRegSource;
18		}
19
20		eventData.eventLabel = null;
21		eventData.payload    = payload;
22
23		return eventData;
24	}
25);
26
27/**
28 * Action to handle Registration Event
29 */
30wp.hooks.addAction(
31	'tda_registration_start',
32	'tmbi-data-analytics',
33	function( digitalData ) {
34		var filteredData = wp.hooks.applyFilters( 'tda_registration_start_filter', {}, digitalData );
35		wp.hooks.doAction( 'tmbi_ga_send_event', 'account', 'create_account', digitalData, filteredData.eventLabel, filteredData.payload );
36	}
37);
38
39/**
40 * Filter to handle Registration Complete Event
41 */
42wp.hooks.addFilter(
43	'tda_registration_complete_filter',
44	'tmbi-data-analytics',
45	function( eventData, digitalData ) {
46		var payload = {};
47
48		if ( undefined !== digitalData.registration && undefined !== digitalData.registration.newRegSource ) {
49			payload['cd_registration_type'] = digitalData.registration.newRegSource;
50		}
51
52		eventData.eventLabel = null;
53		eventData.payload    = payload;
54
55		return eventData;
56	}
57);
58
59/**
60 * Action to handle Registration Complete Event
61 */
62wp.hooks.addAction(
63	'tda_registration_complete',
64	'tmbi-data-analytics',
65	function( digitalData ) {
66		var filteredData = wp.hooks.applyFilters( 'tda_registration_complete_filter', {}, digitalData );
67		wp.hooks.doAction( 'tmbi_ga_send_event', 'account', 'registration_complete', digitalData, filteredData.eventLabel, filteredData.payload );
68	}
69);

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.