SEO
How To Setup A/B Testing Using Microsoft Clarity And GA4

As a marketer, you want to improve your website’s performance and drive more conversions. In many cases, A/B testing could be the answer.
By comparing two versions of a webpage, you can determine which one is more effective at achieving your goals.
In this article, we’ll walk you through the steps to set up A/B testing using Microsoft Clarity and GA4.
Microsoft Clarity is a free heatmap analytics tool that has all the necessary segmentation functionalities to set up A/B testing, especially when Google Optimize is sunsetting as a marketer; you need alternative ways to run your tests.
The easiest and most straightforward way to set up A/B testing is to set up two versions of the webpage and direct traffic to each.
By using a URL filter of Microsoft Clarity, you can segment data and analyze them for different versions of your webpage.
But what if you want to test different layouts of the page on the live traffic without different URLs?
Fortunately, Clarity has custom tags (and GA4 custom dimensions), so you can tag your users and filter them in reports.
What Are Microsoft Clarity Custom Tags?
Clarity’s custom tags are arbitrary alphanumeric custom labels you can assign to the visitor and later use to segment data and analyze recordings and heatmaps for different testing groups.
-
Screenshot from Clarity, May 2023
Are There Limits To Custom Tags In Microsoft Clarity?
There are no limits. You can add as many tags as you want to your project without any restrictions or limitations.
How To Tag A Visitor Using Microsoft Clarity
Tagging is as simple as running a small snippet of JavaScript code:
clarity("set", "experiment", "group_name");
But I would like to guide you through a specific, real-life example of how this can be used from our experience.
At SEJ, we conduct various tests on different types of ads and webpage layouts to gain insights into how user behavior is impacted by factors such as the type of banner ad or webpage layout.
Examples of A/B tests we are running:
- Static banner ads vs. animated banner ads.
- Left sidebar vs. right sidebar.
- Changing menu labels.
The goal is to understand in what case users scroll deeper into the article and thus engage in reading – or whether changing menu labels can help drive more clicks.
1. A/B Testing Static Banner Ads Vs. Animated Banner Ads
We use Google Ad Manager to load ads on our webpage, and thus we can use Google Publisher Tag API to pass key values to our ad server.
We evenly distribute traffic by utilizing the Math.random() function in JavaScript, which returns 1 or 2.
To get the experiment running, copy and paste the below.
We use key “ads_type” with predefined values “static_ads” and “animated_ads” in GAM to be able to run reports of ads on the GAM side as well, such as CTR for each group.
-
Screenshot from Google Ad Manager, May 2023
Then in your webpage <head> section, copy and paste the JS code, or you can use GTM custom HTML tag on every pageview where you have ads.
<script> window.group_name = "animated_ads"; let randomNumber = Math.floor(Math.random() * 2) + 1; // either 1 or 2 if( randomNumber == 2 ){ group_name = "static_ads"; } document.addEventListener('DOMContentLoaded', function() { //make sure publisher tag has loaded if( typeof googletag != 'undefined' ){ googletag.pubads().setTargeting("ads_type", group_name ); } //check if clarity has loaded and set tag "experiment" with values "static_ads" or "animated_ads" if( typeof window.clarity != 'undefined' ){ window.clarity("set", "experiment", window.group_name ); } }); </script>
When “DOMContentLoaded” event fires, publisher tag and Clarity are usually loaded. If not, you may consider wrapping JS inside into a setTimeout() function with a small delay.
With the ads_type key in GAM, it is possible to configure different banner types to be served to each group. As we have that key set up as a tag value for “experiment” key in Clarity, we can analyze data for each group and run your reports.
-
Screenshot from Clarity, May 2023
If you need a specific setup that requires advanced coding you may try using ChatGPT to write for you a code.
If you want to track how users’ conversion rates change in GA4 you can add a custom dimension with the key “experiment” in GA4 and populate it when the configuration tag loads by using datalayer.push method.
dataLayer.push({ 'experiment': group_name });
Alternatively, you can use GTM JavaScript variable to get window.group_name global variable value we set above as a testing parameter.
-
Screenshot from GA4, May 2023
And in the configuration tag, set up a custom dimension to pass that variable value as shown below:
-
Screenshot from GA4, May 2023
Populate custom dimension “experiment” from the global JS variable window.group_name, and voila!
Now your experiment custom dimension is passed to GA4, and you can filter reports using the custom dimension “experiment.”
(Quick tip: When naming your custom dimensions, make sure you don’t use any of the reserved parameter names to function it properly.)
2. Left Sidebar Vs. Right Sidebar
The principle is the same. Use Math.random() function in JavaScript in order to split test.
<style> /*when adding this class to the content div it swaps sidebar position */ .main_content_right{ flex-direction: row-reverse; } </style> <script> // since we have no any css under .main_content_left class it will do nothing i.e. sidebar will be the default right; window.group_name = "main_content_left" let randomNumber = Math.floor(Math.random() * 2) + 1; // either 1 or 2. //let randomNumber = Math.floor(Math.random() * 5) + 1; // random number from 1-5. use this if you want to run test on the sample of your traffic e.g. on the 25%. if( randomNumber == 2 ){ group_name = "main_content_right" // we will use group_name as a class name and a custom tag at the same time; } //If DOMContentLoaded has loaded run the code, otherwise attach an event listener if (document.readyState === 'complete') { move_sidebar( group_name ) } else { // DOMContentLoaded event has not yet fired document.addEventListener('DOMContentLoaded', function() { move_sidebar( group_name ); }); } function move_sidebar( class_name ){ document.querySelector('.sej-sect>div').classList.add(class_name);// add class //check if clarity has loaded and set tag "experiment" with values "right_sidebar" or "left_sidebar" if( typeof window.clarity != 'undefined' ){ window.clarity("set", "experiment", class_name ); } console.log('sidebar position', class_name ); } </script>
In this case, we are manipulating DOM in order to change the layout.
In your specific case, you may need to apply different CSS for layout adjustments. You can use ChatGPT as a handy tool to help you with your custom coding.
After a certain time, when you have enough sample data for your split testing, you can use Microsoft Clarity’s tag filter “experiment=main_content_left” or “experiment=main_content_right” to segment your data.
3. A/B Test Menu Labels
Again we will be using Math.random() function and manipulating DOM via JavaScript.
We want to test the menu label “Latest” vs. “News” in our website’s navigation bar.
For that, let’s get the JS path using browser DevTools as shown below.
-
Screenshot from DevTools, May 2023
We will be using JS path to access elements in the DOM and change the label.
<script> //We want to test the menu label for the Latest section in our website's navigation bar window.group_name = "Latest" let randomNumber = Math.floor(Math.random() * 2) + 1; // either 1 or 2. //let randomNumber = Math.floor(Math.random() * 5) + 1; // random number from 1-5. use this if you want to run test on the sample of your traffic e.g. on the 25%. if( randomNumber == 2 ){ group_name = "News" // we will use group_name as a label and a custom tag at the same time; } //If DOMContentLoaded has loaded run the code, otherwise attach an event listener if (document.readyState === 'complete') { change_label( menu_label ) } else { // DOMContentLoaded event has not yet fired document.addEventListener('DOMContentLoaded', function() { change_label( menu_label ); }); } function change_label( menu_label ){ document.querySelector("#main-navigation > li:nth-child(1) > a").textContent=menu_label;//set label, in your case it will be different //check if clarity has loaded and set tag "experiment" with values "right_sidebar" or "left_sidebar" if( typeof window.clarity != 'undefined' ){ window.clarity("set", "experiment", menu_label ); } console.log('menu label', menu_label ); } </script>
To add your code, you can either insert it into the <head> section of your webpage or use GTM, as explained earlier.
Note that if you’re tracking with GA4, you’ll also need to use a custom dimension.
To pull reports in GA4 you would need to use “Explorer Reports” and filter your metric by custom dimension “experiment”.
Conclusion
Buying A/B testing tools can be expensive, and they may not always offer the specific features you need for your goals.
For instance, none of the A/B testing tools we tried could provide a user-friendly interface for testing different types of ads without custom coding.
However, the methods described here may require some effort to learn custom coding.
With ChatGPT available to help you write code, however, the process shouldn’t be too hard.
More resources:
Featured Image: Burdun Iliya/Shutterstock
SEO
4 Ways To Try The New Model From Mistral AI

In a significant leap in large language model (LLM) development, Mistral AI announced the release of its newest model, Mixtral-8x7B.
magnet:?xt=urn:btih:5546272da9065eddeb6fcd7ffddeef5b75be79a7&dn=mixtral-8x7b-32kseqlen&tr=udp%3A%2F%https://t.co/uV4WVdtpwZ%3A6969%2Fannounce&tr=http%3A%2F%https://t.co/g0m9cEUz0T%3A80%2Fannounce
RELEASE a6bbd9affe0c2725c1b7410d66833e24
— Mistral AI (@MistralAI) December 8, 2023
What Is Mixtral-8x7B?
Mixtral-8x7B from Mistral AI is a Mixture of Experts (MoE) model designed to enhance how machines understand and generate text.
Imagine it as a team of specialized experts, each skilled in a different area, working together to handle various types of information and tasks.
A report published in June reportedly shed light on the intricacies of OpenAI’s GPT-4, highlighting that it employs a similar approach to MoE, utilizing 16 experts, each with around 111 billion parameters, and routes two experts per forward pass to optimize costs.
This approach allows the model to manage diverse and complex data efficiently, making it helpful in creating content, engaging in conversations, or translating languages.
Mixtral-8x7B Performance Metrics
Mistral AI’s new model, Mixtral-8x7B, represents a significant step forward from its previous model, Mistral-7B-v0.1.
It’s designed to understand better and create text, a key feature for anyone looking to use AI for writing or communication tasks.
New open weights LLM from @MistralAI
params.json:
– hidden_dim / dim = 14336/4096 => 3.5X MLP expand
– n_heads / n_kv_heads = 32/8 => 4X multiquery
– “moe” => mixture of experts 8X top 2 👀Likely related code: https://t.co/yrqRtYhxKR
Oddly absent: an over-rehearsed… https://t.co/8PvqdHz1bR pic.twitter.com/xMDRj3WAVh
— Andrej Karpathy (@karpathy) December 8, 2023
This latest addition to the Mistral family promises to revolutionize the AI landscape with its enhanced performance metrics, as shared by OpenCompass.
What makes Mixtral-8x7B stand out is not just its improvement over Mistral AI’s previous version, but the way it measures up to models like Llama2-70B and Qwen-72B.
It’s like having an assistant who can understand complex ideas and express them clearly.
One of the key strengths of the Mixtral-8x7B is its ability to handle specialized tasks.
For example, it performed exceptionally well in specific tests designed to evaluate AI models, indicating that it’s good at general text understanding and generation and excels in more niche areas.
This makes it a valuable tool for marketing professionals and SEO experts who need AI that can adapt to different content and technical requirements.
The Mixtral-8x7B’s ability to deal with complex math and coding problems also suggests it can be a helpful ally for those working in more technical aspects of SEO, where understanding and solving algorithmic challenges are crucial.
This new model could become a versatile and intelligent partner for a wide range of digital content and strategy needs.
How To Try Mixtral-8x7B: 4 Demos
You can experiment with Mistral AI’s new model, Mixtral-8x7B, to see how it responds to queries and how it performs compared to other open-source models and OpenAI’s GPT-4.
Please note that, like all generative AI content, platforms running this new model may produce inaccurate information or otherwise unintended results.
User feedback for new models like this one will help companies like Mistral AI improve future versions and models.
1. Perplexity Labs Playground
In Perplexity Labs, you can try Mixtral-8x7B along with Meta AI’s Llama 2, Mistral-7b, and Perplexity’s new online LLMs.
In this example, I ask about the model itself and notice that new instructions are added after the initial response to extend the generated content about my query.


While the answer looks correct, it begins to repeat itself.


The model did provide an over 600-word answer to the question, “What is SEO?”
Again, additional instructions appear as “headers” to seemingly ensure a comprehensive answer.


2. Poe
Poe hosts bots for popular LLMs, including OpenAI’s GPT-4 and DALL·E 3, Meta AI’s Llama 2 and Code Llama, Google’s PaLM 2, Anthropic’s Claude-instant and Claude 2, and StableDiffusionXL.
These bots cover a wide spectrum of capabilities, including text, image, and code generation.
The Mixtral-8x7B-Chat bot is operated by Fireworks AI.


It’s worth noting that the Fireworks page specifies it is an “unofficial implementation” that was fine-tuned for chat.
When asked what the best backlinks for SEO are, it provided a valid answer.


Compare this to the response offered by Google Bard.


3. Vercel
Vercel offers a demo of Mixtral-8x7B that allows users to compare responses from popular Anthropic, Cohere, Meta AI, and OpenAI models.


It offers an interesting perspective on how each model interprets and responds to user questions.


Like many LLMs, it does occasionally hallucinate.


4. Replicate
The mixtral-8x7b-32 demo on Replicate is based on this source code. It is also noted in the README that “Inference is quite inefficient.”


In the example above, Mixtral-8x7B describes itself as a game.
Conclusion
Mistral AI’s latest release sets a new benchmark in the AI field, offering enhanced performance and versatility. But like many LLMs, it can provide inaccurate and unexpected answers.
As AI continues to evolve, models like the Mixtral-8x7B could become integral in shaping advanced AI tools for marketing and business.
Featured image: T. Schneider/Shutterstock
SEO
OpenAI Investigates ‘Lazy’ GPT-4 Complaints On Google Reviews, X

OpenAI, the company that launched ChatGPT a little over a year ago, has recently taken to social media to address concerns regarding the “lazy” performance of GPT-4 on social media and Google Reviews.

This move comes after growing user feedback online, which even includes a one-star review on the company’s Google Reviews.
OpenAI Gives Insight Into Training Chat Models, Performance Evaluations, And A/B Testing
OpenAI, through its @ChatGPTapp Twitter account, detailed the complexities involved in training chat models.


The organization highlighted that the process is not a “clean industrial process” and that variations in training runs can lead to noticeable differences in the AI’s personality, creative style, and political bias.
Thorough AI model testing includes offline evaluation metrics and online A/B tests. The final decision to release a new model is based on a data-driven approach to improve the “real” user experience.
OpenAI’s Google Review Score Affected By GPT-4 Performance, Billing Issues
This explanation comes after weeks of user feedback about GPT-4 becoming worse on social media networks like X.
Idk if anyone else has noticed this, but GPT-4 Turbo performance is significantly worse than GPT-4 standard.
I know it’s in preview right now but it’s significantly worse.
— Max Weinbach (@MaxWinebach) November 8, 2023
There has been discussion if GPT-4 has become “lazy” recently. My anecdotal testing suggests it may be true.
I repeated a sequence of old analyses I did with Code Interpreter. GPT-4 still knows what to do, but keeps telling me to do the work. One step is now many & some are odd. pic.twitter.com/OhGAMtd3Zq
— Ethan Mollick (@emollick) November 28, 2023
Complaints also appeared in OpenAI’s community forums.


The experience led one user to leave a one-star rating for OpenAI via Google Reviews. Other complaints regarded accounts, billing, and the artificial nature of AI.


A recent user on Product Hunt gave OpenAI a rating that also appears to be related to GPT-4 worsening.


GPT-4 isn’t the only issue that local reviewers complain about. On Yelp, OpenAI has a one-star rating for ChatGPT 3.5 performance.
OpenAI is now only 3.8 stars on Google Maps and a dismal 1 star on Yelp!
GPT-4’s degradation has really hurt their rating. Hope the business survives.https://t.co/RF8uJH1WQ5 pic.twitter.com/OghAZLCiVu
— Nate Chan (@nathanwchan) December 9, 2023
The complaint:


In related OpenAI news, the review with the most likes aligns with recent rumors about a volatile workplace, alleging that OpenAI is a “Cutthroat environment. Not friendly. Toxic workers.”


The reviews voted the most helpful on Glassdoor about OpenAI suggested that employee frustration and product development issues stem from the company’s shift in focus on profits.


This incident provides a unique outlook on how customer and employee experiences can impact any business through local reviews and business ratings platforms.


Google SGE Highlights Positive Google Reviews
In addition to occasional complaints, Google reviewers acknowledged the revolutionary impact of OpenAI’s technology on various fields.
The most positive review mentions about the company appear in Google SGE (Search Generative Experience).


Conclusion
OpenAI’s recent insights into training chat models and response to public feedback about GPT-4 performance illustrate AI technology’s dynamic and evolving nature and its impact on those who depend on the AI platform.
Especially the people who just received an invitation to join ChatGPT Plus after being waitlisted while OpenAI paused new subscriptions and upgrades. Or those developing GPTs for the upcoming GPT Store launch.
As AI advances, professionals in these fields must remain agile, informed, and responsive to technological developments and the public’s reception of these advancements.
Featured image: Tada Images/Shutterstock
SEO
ChatGPT Plus Upgrades Paused; Waitlisted Users Receive Invites

ChatGPT Plus subscriptions and upgrades remain paused after a surge in demand for new features created outages.
Some users who signed up for the waitlist have received invites to join ChatGPT Plus.

This has resulted in a few shares of the link that is accessible for everyone. For now.
Found a hack to skip chatGPT plus wait list.
Follow the steps
– login to ChatGPT
– now if you click on upgrade
– Signup for waitlist(may not be necessary)
– now change the URL to https://t.co/4izOdNzarG
– Wallah you are in for payment #ChatGPT4 #hack #GPT4 #GPTPlus pic.twitter.com/J1GizlrOAx— Ashish Mohite is building Notionpack Capture (@_ashishmohite) December 8, 2023
RELATED: GPT Store Set To Launch In 2024 After ‘Unexpected’ Delays
In addition to the invites, signs that more people are getting access to GPTs include an introductory screen popping up on free ChatGPT accounts.


Unfortunately, they still aren’t accessible without a Plus subscription.


You can sign up for the waitlist by clicking on the option to upgrade in the left sidebar of ChatGPT on a desktop browser.


OpenAI also suggests ChatGPT Enterprise for those who need more capabilities, as outlined in the pricing plans below.


Why Are ChatGPT Plus Subscriptions Paused?
According to a post on X by OpenAI’s CEO Sam Altman, the recent surge in usage following the DevDay developers conference has led to capacity challenges, resulting in the decision to pause ChatGPT Plus signups.
we are pausing new ChatGPT Plus sign-ups for a bit 🙁
the surge in usage post devday has exceeded our capacity and we want to make sure everyone has a great experience.
you can still sign-up to be notified within the app when subs reopen.
— Sam Altman (@sama) November 15, 2023
The decision to pause new ChatGPT signups follows a week where OpenAI services – including ChatGPT and the API – experienced a series of outages related to high-demand and DDoS attacks.
Demand for ChatGPT Plus resulted in eBay listings supposedly offering one or more months of the premium subscription.
chatgpt plus accounts selling ebay for a premium 🫡🇺🇸 https://t.co/VdN8tuexKM pic.twitter.com/W522NGHsRV
— surya (@sdand) November 15, 2023
When Will ChatGPT Plus Subscriptions Resume?
So far, we don’t have any official word on when ChatGPT Plus subscriptions will resume. We know the GPT Store is set to open early next year after recent boardroom drama led to “unexpected delays.”
Therefore, we hope that OpenAI will onboard waitlisted users in time to try out all of the GPTs created by OpenAI and community builders.
What Are GPTs?
GPTs allow users to create one or more personalized ChatGPT experiences based on a specific set of instructions, knowledge files, and actions.
Search marketers with ChatGPT Plus can try GPTs for helpful content assessment and learning SEO.
Two SEO GPTs I’ve created for assessment + learning 👀👇
1. Content Helpfulness and Quality SEO Analyzer: Assess a page content helpfulness, relevance, and quality for your targeted query based on Google’s guidelines vs your competitors and get tips: https://t.co/LsoP2UhF4N pic.twitter.com/O77MHiqwOq
— Aleyda Solis 🕊️ (@aleyda) November 12, 2023
2. The https://t.co/IFmKxxVDpW SEO Teacher: A friendly SEO expert teacher who will help you to learn SEO using reliable https://t.co/sCZ03C7fzq resources: https://t.co/UrMPUYwblH
I hope they’re helpful 🙌🤩
PS: Love how GPT opens up to SO much opportunity 🤯 pic.twitter.com/yqKozcZTDc
— Aleyda Solis 🕊️ (@aleyda) November 12, 2023
There are also GPTs for analyzing Google Search Console data.
oh wow. I think this GPT works.
Export data from GSC comparing keyword rankings before and after an update and upload it to ChatGPT and it will spit out this scatter plot for you.
It’s an easy way to see if most of your keyword declined or improved.
This site was impacted by… pic.twitter.com/wFGSnonqoZ
— Marie Haynes (@Marie_Haynes) November 9, 2023
And GPTs that will let you chat with analytics data from 20 platforms, including Google Ads, GA4, and Facebook.
Google search has indexed hundreds of public GPTs. According to an alleged list of GPT statistics in a GitHub repository, DALL-E, the top GPT from OpenAI, has received 5,620,981 visits since its launch last month. Included in the top 20 GPTs is Canva, with 291,349 views.
Weighing The Benefits Of The Pause
Ideally, this means that developers working on building GPTs and using the API should encounter fewer issues (like being unable to save GPT drafts).
But it could also mean a temporary decrease in new users of GPTs since they are only available to Plus subscribers – including the ones I tested for learning about ranking factors and gaining insights on E-E-A-T from Google’s Search Quality Rater Guidelines.


Featured image: Robert Way/Shutterstock
-
WORDPRESS5 days ago
8 Best Zapier Alternatives to Automate Your Website
-
SOCIAL5 days ago
YouTube Highlights its Top Trends, Topics and Creators of 2023
-
WORDPRESS6 days ago
Watch Live on December 11 – WordPress.com News
-
SEO6 days ago
Critical WordPress Form Plugin Vulnerability Affects Up To +200,000 Installs
-
WORDPRESS5 days ago
How to Create a Wholesale Order Form in WordPress (3 Ways)
-
MARKETING6 days ago
Mastering The Laws of Marketing in Madness
-
PPC6 days ago
12 Holiday Emails for Customers (Templates & Examples!)
-
PPC7 days ago
8 Super-Helpful AI Features in Google Ads