Page 6 - Monthly Archives: 2024
- 4 min read
If you have a website, especially in eCommerce, you know how important it is to track . It helps to improve your marketing, sales and content strategies as well as get feedback on what works and what doesn't. So the ultimate question is not about whether to track data or not, but rather how to track it: client-side or server-side.
While most websites use client-side tracking, server-side can also bring a lot of benefits to the table. So today we'll discuss both tracking methods to help you determine which one fits your needs best.
Those of you who use Magento as an eCommerce platform will also find a ready-to-use solution for client-side and server-side tracking. So stick around.
Same as always, before we determine the similarities and differences of both tracking methods, let's talk about them first.
What is Client-Side Tracking?
Client-side tracking is the process of tracking users' actions on your website and sending data from users' browsers to the tag management system or analyticsihor
- 2 min read
Magento 2 CMS blocks allow you to put specific content in the spotlight. If you share some announcements, discounts, or special offers using CMS blocks. This makes your customers finding and applying them much more probable.
You can create , that's one way. However, it's also possible to create new CMS blocks in Magento 2 programmatically. This is exactly what you'll learn today.
First, you need to and add the Setup folder to it. Then, create an InstallData.php file in app/code/Vendor/Extension/Setup and add the following code:
<?phpnamespace Vendor\Extension\Setup;use Magento\Cms\Model\BlockFactory;use Magento\Framework\Setup\InstallDataInterface;use Magento\Framework\Setup\ModuleContextInterface;use Magento\Framework\Setup\ModuleDataSetupInterface;class InstallData implements InstallDataInterface{ private $blockFactory; public function __construct(BlockFactory $blockFactory) { $this->blockFactory = $blockFactory; } public function install(ModuleDataSetupInterfaceihor
- 4 min read
Google has become more sophisticated in ranking the most useful and user-friendly pages. But that's not the only thing. The way pages get into Google Index is changing too. That's when XML sitemap and Google Indexing API come into play.
Should you rely on the standard crawling or request indexing through API? Today you stop wondering which option is best for your ranking and SEO in general.
We'll compare the XML sitemap and Google Indexing API to determine if you need both for your website.
As usual, before we get to the main part, let's define what these concepts are.
What is XML Sitemap?
XML sitemap is a file where you include information about the pages, videos and other files on your website and the relationships between them. This file tells Google which pages are important on your website and which ones you want indexed. Google then uses the sitemap to crawl your pages and add them to the index.
Before you ask, Google can discover your pages through internal and externalihor
- 4 min read
When setting up a product catalogue, you pay special attention to the pricing. You operate regular prices as well as sales, , and special offers that make your items more attractive.
As a Magento 2 user, you have many options for the effective management of the entire catalogue. However, there's also the advanced pricing option that helps you apply discounts at the product level.
If you haven't used this option yet, we've got you covered. In this guide, you'll learn what Magento 2 advanced pricing is and how you can configure it.
Let's cut to the chase!
What is Advanced Pricing in Magento 2?
Magento 2 advanced pricing is the functionality that enables you to manage prices and special offers for individual products. Using the options Magento offers, such as , for instance, you can handle catalogue discounts in bulk. But to highlight a particular product, you need to apply the Magento advanced pricing.
In terms of product types, you can apply advanced pricing for simple, bundle, downloadableihor
- 1 min read
A blog is an effective solution to maintain your online presence and attract more visitors. Yet, to keep readers engaged, you should also implement blog comments. Comments help you deliver to people's needs better.
What also matters is the option to reply to blog comments in Shopify. Of course, you can do it on the Shopify storefront. But it would be more convenient to reply to blog comments without having to leave the admin panel, right?
That's exactly what the offers. It comes with , where you have the comment reply option in Magefan Comments.
To reply to blog comments in the Shopify:
1. Navigate to Apps > Magefan Blog > Comments.
2. Open a comment you'd like to reply to and press the Reply button.
3. Type your reply in the corresponding field and Save changes.
Now you can see your reply on the storefront:
These are all the steps you need to take to reply to blog comments in Shopify. Everything is done in a few clicks. But that's not it. To operate your blog comments effectively, youihor
- 6 min read
Millions of people go through millions of pages they find on Google daily. If you want your Magento website to be within that number and get discovered by potential customers, you need to get into the Google index. Otherwise, your chances of getting organic traffic range from zero to none, which is basically the same thing.
To get Google to index your website you need to know how the index works and how to submit a page to Google. So, today we'll cover this along with the most common reasons why Google doesn't index your website and how to fix that.
Don't get overwhelmed just yet. It is actually not that hard to grasp the concepts of the Google indexing process. We promise.
Warning: we'll start from the basics. So if you've already generated a sitemap for your Magento store, just move to the other sections.
How Google Finds Your Content?
Before you learn how to get Google to index your website, you need to know how the index works in the first place. The process comes down to 4ihor
- 5 min read
Getting indexed by Google fast is an opportunity not many websites are exposed to since the majority of them rely on a sitemap. The XML sitemap does help Google discover your pages, but it is not fast enough to display relevant changes in search.
Thus, if you want to see your changes reflected in Google search results almost instantly, you need Google Indexing API. It is a speedier and more direct approach to indexing that outperforms standard crawling.
While it is relatively hard to set up, you can still do it by using the . In this guide, though, you'll learn all about the prerequisites of the Indexing API and how to set it up for Magento.
Before we dive deeper into the topic, let's define what is Google Indexing API.
What is Google Indexing API?
Google Indexing API is a powerful tool that allows you to notify Google when pages on your website are added, updated or removed. Correspondingly, Google schedules a fresh crawl each time you make changes to your website pages. Asihor
- 4 min read
Hi, the Magefan customers and welcome the newbies of our Magefan blog,
We're happy to share our latest news and product updates of this January. Since we've already published at the beginning of the month, we're happy to share another portion of the product releases our team has been working on this month.
New features of !
Features:
Added compatibility with the Google Tag Manager Server Container (GTM Extra).
Option to use GTM Server Container or GA4 Measurement Protocol to track only missing purchase transactions (GTM Extra).
Option to define Google Ads Tag ID (GTM Plus).
Code Refactor.
The latest available version is v 2.5.0
Request a FREE trial
New features of !
Features:
Simplified the installation process for the POS system, eliminating the need for "pos" in the "pub" folder.
Enhanced cash operations functionality, requiring comments for taking or putting cash. Daily cash operation history is now accessible on the session page, with a complete history available in theihor
- 3 min read
Once you configure the , you might wonder whether you need indexing API too. The answer is Yes if you want more control over what gets indexed and when. But where do you start?
You can delve into the technical part and spend hours starting the implementation or configure the .
Today, we'll talk about the latter since it is way easier to use the indexing API in Magento this way.
Once you , navigate to Stores > Configuration > Magefan Extensions > Google Indexing. Then, enable the extension and continue with the other settings.
Indexing Delay
If you decide to send Google indexing requests automatically or manually, note that they are sent immediately.
However, what if you decide to promptly change something else on the page and something else after that? It will create too many unnecessary requests to Google.
To avoid this, set the Indexing Delay (in minutes) to delay the request, manual or automatic.
Credentials
To send indexing requests to Google via API, you must register yourihor
- 1 min read
If you decided to remove , please follow the steps below. You can contact our team for a free consultation in case you have any issues with Magefan's extension.
Remove Extension Files
Removing files instruction depends on the way the Google Indexing API extension has been installed in.
1. If you can find the extension files in the folder
app/code/Magefan/GoogleIndexing
then remove this folder.
2. If the extension was installed via the composer and its files located in the folder
vendor/magefan/module-google-indexing
then run composer CLI command to remove it
composer remove magefan/module-google-indexing
Once extension files have been removed, run these Magento CLI commands:
php bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these .
Remove Extension Data (optional)
Attention! This will clean all Google Indexing API configurations.
1. Just in case, please make aihor
- 1 min read
If you need to update by Magefan, please follow the steps below.
Note: the updating instructions depend on the method the Google Indexing API extension was installed with.
Update using composer
If the Google Indexing API module was installed via the composer (check if vendor/magefan/module-google-indexing folder exists), then you need to run these simple CLI commands in Magento 2 directory:
composer remove magefan/module-google-indexingcomposer require magefan/module-google-indexing ^x.x.x# replace x.x.x with the version you want to usephp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these .
Update using archive and FTP
If the Google Indexing API module was installed via FTP (check if app/code/Magefan/GoogleIndexing folder exists), then follow these commands:
1. Download the latest version of the Google Indexing API extension archive from magefan.com.
2ihor
- 1 min read
You can install by Magefan, using composer or archive installation methods.
Installation via composer (recommended)
Please navigate to your Magefan Account > Downloads > Install via Composer to get the composer installation instructions.
Installation using archive and FTP
Download Google Indexing API ZIP-Archive from magefan.com website (not GitHub or other sources).
Extract files.
Copy app and lib folders from the archive to your Magento 2 folder.
In a command line, using "cd", navigate to your Magento 2 root directory.
Run CLI commands:
php bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these .
- 8 min read
Satisfying your customers' needs is a demanding task, especially when the items you sell on Shopify come in different sizes. It's frustrating when the long-awaited item doesn't fit, don't you agree? Thus, getting into a cycle of constant returns and unsatisfied shoppers, you lose more than you gain.
The best solution? Provide clear sizing guides for people to be confident in their choices. But here comes the next dilemma — what to go for?
With all the available options out there, you may find it difficult to settle for one. So, we prepared a list of the best Shopify size chart apps for you to find a perfect match.
Let's see what these options offer, shall we?
Top Size Chart Apps for Shopify
Icon
App name
Developer
Price
Free plan
Free trial
Easy Size Chart & Size Guide
Magefan
Standard - $4.99/month
Pro - $9.99/month
Kiwi Size Chart & Recommender
Staytuned
Premium - $6.99/month
Plus - $12.49/month
Ultimate - $24.49/month
BF Size Chart & Size Guide
Relentless Apps
Premium - $6.99/monthihor
- 9 min read
In the world of eCommerce, new stores go live every day. Millions of users choose Shopify for their journey given the platform is relatively simple to use.
Yet, even with all the necessary means at your disposal, it might be difficult to make the first step. With the variety of options, you may be uncertain as to what exactly to settle for. That's a common thing if you want to make your store unique and engaging.
But don't worry. We've prepared a list of the best Shopify website examples so you can get new ideas and ensure that creativity has no limits.
Ready to get inspired?
1. Allbirds
Combining comfort and eco-awareness, Allbirds is a great Shopify website example to start with. Though the idea of being eco-friendly is not new, the implementation is certainly fresh.
The brand uses unique wool fabric specifically for shoes making them sustainable. Customers are also attracted to the simple but appealing design and recycled packaging. With the variety of colours and sizes, you'll certainlyihor
- 5 min read
Making informed business decisions is only possible with accurate data about transactions and orders. Agree? Then, you probably need help with the problem of missing transactions in Google Analytics 4 (GA4).
You're not alone in your struggle since missing transactions and orders in GA4 are more common than one would think. There are plenty of reasons why it appears, but only a few solutions.
In this guide, we'll cover the most common reasons why transactions are missing in GA4 and what you can do to improve the data accuracy.
Those of you who use Magento, stay tuned to learn about the solution to this issue.
Reasons Why Transactions Are Missing in Google Analytics 4
There is no one-size-fits-all answer regarding missing transactions and orders in Google Analytics 4. There could be multiple reasons why it happens or just one. However, identifying it helps you to eliminate the issue and improve the data tracking in your store.
Let's review why some data might be incorrect or missing fromihor
- 2 min read
Whether you disable, delete or change Shopify Blog URLs, you don't want readers to end up on the 404 pages. This badly influences your visitors' experience and makes your Shopify blog SEO efforts go in vain. Not the best scenario.
Thus, to avoid this, you need to create blog URL redirects in Shopify. So, today you'll learn how to create URL redirects for the by Magefan.
Auto Redirects for Disabled Entities
Whenever you disable some blog posts, categories, tags and authors, the Magefan Blog app creates automatic redirects. Here's how readers are redirected based on a page they try to access:
Blog post > category > root category > blog homepage
Blog category > parent category > root category > blog homepage
Blog author > blog homepage
Blog tag > blog homepage
You don't need to enable or create anything since redirects from disabled blog entities are enabled automatically.
Auto Redirects on Blog URL Change
The other case when you need to create blog URL redirects is when you change theihor
- 1 min read
When your sitemaps aren't generated or catalogue price rules aren't updated, the first thing to check is cron jobs. Since they run in the background you notice something's off only when certain tasks aren't performed automatically.
Sometimes you discover cron issues too late to avoid the damage. So it's important to be aware of the cron jobs processes and fix them timely.
That's what we'll cover in this guide. You'll learn how to set up failed and missed cron job notifications with the .
To enable missed cron job notifications in Magento:
1. Navigate to Stores > Configuration > Magefan Extensions > Cron Schedule and find the Email Notifications section.
2. Enable Email Notifications about missed cron jobs or tasks that failed.
3. Choose whether to Report Missed Tasks. If set to No, you'll receive notifications only about the failed cron task.
4. Specify the Template, Sender and Receipinets (coma-separated) for the cron job notifications.
5. Set the Schedule of theihor
- 5 min read
The Magento team regularly releases new versions with stunning features, fixes and security improvements. It's meant to secure your store from security threats, boost functionality and improve performance. But it won't work for you, unless you update Magento 2 timely.
Some delay the update out of fear of the complicated update process. Some want to avoid the expenses following the update. Some just don't see why they need to update if everything works fine. In any case, you put your store at risk, by running on an outdated version of Magento.
In this guide, we aim to get you one step closer to Magento 2 update. You'll go through the Magento 2 upgrade process step by step: from creating a backup to fixing the issues that might pop up after the update.
Ready?
Why Do You Need to Update Magento 2?
Those of you who still doubt whether to update Magento 2 to the latest version, might need to skim through the following benefits.
Improved performance — a new version of Magento is optimisedihor
- 1 min read
Repetitive tasks would be quite hard to handle if it weren't for the automation. Fortunately, Magento 2 has you covered with the to manage your store operations effectively.
Except for scheduling the crons, you might need to edit their information. That's when it gets complicated since you need to have some technical background to edit cron details in Magento 2.
But not if you use the to edit cron job information right in the admin panel. Sounds intriguing, doesn't it?
To edit cron job information in Magento 2:
1. Go to System > Cron > Cron Jobs.
2. Find the cron job you want to edit and click on it.
3. Edit the cron instance, method, group, and status, or reschedule the cron job if needed.
Don't forget to Save the changes once you finish.
This is how easily you can edit cron job information in Magento 2 in a matter of a few clicks. Once all the cron jobs are adjusted, you can also .
- 5 min read
Although browser-based tracking has proven to be effective in collecting data, it's not 100%. Due to 3rd-party cookies and adblockers customers use, some data still doesn't make it to your Google Analytics account. To avoid this, you need to find a way to bypass the 3rd party-cookies.
The only solution is to take the tracking to an entirely new level — server-side tracking.
You can either using the GA4 Measurement Protocol or GTM Server Container. Today, we'll walk you through the latter and explain how to set up and use it properly. The tool you'll need for a smooth implementation is .
However, before we move to the main part of the guide, let's define what is GTM server container.
What is a GTM Server Container?
GTM server container is a new way of using Google Tag Manager to send measurement data from your server to GTM servers. Once you collect that data you can choose how to shape it and where to route it from the GTM server (to GA4, Google Ads, etc.)
So, basically, you createihor
- 2 min read
are mostly created on the frontend by customers themselves. However, there may be cases when store managers need to create customer accounts from the admin panel.
Nonetheless, creating customer accounts manually may be time-consuming if you need to create a few. Thus, it may be more convenient to create customer in Magento 2 programmatically.
It's exactly what you'll learn today.
Create Customer Using Dependency Injection
To begin with, you can create a customer programmatically using the dependency injection method. Just use the code below:
<?phpdeclare(strict_types=1);namespace Vendor\Module\Model;use Magento\Store\Model\StoreManagerInterface;use Magento\Customer\Api\Data\CustomerInterfaceFactory;use Magento\Customer\Api\CustomerRepositoryInterface;use Magento\Framework\Encryption\EncryptorInterface;class CreateCustomerService{ /** * @var StoreManagerInterface */ protected $storeManager; /** * @var CustomerInterfaceFactory */ protected $customerFactory; /** * @var CustomerRepositoryInterfaceihor
