Sample Page

This is an example page. It’s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:

Hi there! I’m a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like piƱa coladas. (And gettin’ caught in the rain.)

…or something like this:

The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.

As a new WordPress user, you should go to your dashboard to delete this page and create new pages for your content. Have fun!

<script>
// Set dynamic values at the top for easy modification
const dynamicContentName = 'DYNAMIC_VALUE_HERE'; // Replace this with your dynamic content name value
const destinationURL = 'google.com?tid='; // Replace this with your affiliate URL with ?tid= included
// Initialize Facebook Pixel
!function(f,b,e,v,n,t,s) {
if(f.fbq)return;
n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)
}(window, document,'script','https://connect.facebook.net/en_US/fbevents.js');

// Function to fire Facebook event
function fireFacebookEvent(eventName, params) {
fbq('track', eventName, params);
}
// Fire Facebook "CompleteRegistration" event with dynamic content_name parameter
fireFacebookEvent('CompleteRegistration', {
content_name: dynamicContentName // Use dynamic value here
});
console.log(Complete Registration event fired with content_name "${dynamicContentName}");
// Function to extract URL parameters
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
// Get only the value of 'utm_campaign' parameter from the current URL
var campaignValue = getParameterByName('utm_campaign');
// Append only the campaign value to the destination URL if available
let finalURL = destinationURL;
if (campaignValue) {
finalURL += encodeURIComponent(campaignValue); // Append value directly to tid=
}
// Redirect to the final URL with a delay to ensure event fires
setTimeout(function() {
window.location.href = finalURL;
}, 300); // Adjust delay as needed, e.g., 1000 ms (1 second)
</script>