How to Create Custom Attribution Model in Google Analytics



This article is related to attribution modelling in Google Analytics.

If you are brand new to attribution modelling then I would suggest to read this article first: Beginners Guide to Google Analytics Attribution Modelling.

Today I will show you, how to create and use your own attribution model (aka ‘Custom Attribution Model’) in Google Analytics using the model comparison tool. 

Through model comparison tool you can create a new attribution model.

You can create up to 10 custom attribution models per GA reporting view.

If you have never used the model comparison tool before, then read this article:Attribution Model Comparison Tool in Google Analytics

Quick recap

An attribution model is a set of rules which is used to determine, how credit for conversions should be attributed/distributed to different touch points in a conversion path.

A conversion path can be made up of: one interaction, two interactions, four interactions etc.

An interaction is an exposure to a marketing channel.

Since interaction and touchpoints are the same thing, a conversion path can be made up of: one touch point, two touch points, four touch points etc.

An attribution model divides conversion credit across all touch points.

So if you are using a linear attribution model, then the conversion credit will be divided equally across all touch points.

In other words, all touch points will get equal credit for conversions.

However if you are using a last click model, then the conversion credit will not be divided across all touch points and the last interactions get all the credit for conversions.

Same is the case with first click model, where the first interactions get all the credit for conversions.

Get the Free E-Book (52 Pages)

Why create your own attribution model?

At this point, you may be thinking, what is the point of creating an attribution model, when there are already so many baseline attribution models available in GA.

The purpose of creating your own attribution model, is to valuate your marketing from different perspective.

When you use a different attribution model, it impacts the valuation of your marketing channels. 

Through attribution model you can evaluate the effectiveness of your marketing campaigns.

You can evaluate yours assumptions in your conversion path data.

You use the attribution model output, to increase or decrease investment in a marketing channel and then monitor how it affects your conversions and sales over time.

Through attribution model you can test your assumptions by experimenting.

Attribution models are used for experimenting/testing purpose.

For example, under last click attribution model, your display advertising may be heavily undervalued because of your unique customers’ purchase behavior. 

May be majority of your customers are getting influenced by your display ads in their conversion journey but they are not clicking on these ads before making a purchase.

So may be under last click attribution model, display advertising is heavily undervalued.

But how you can know for sure whether or not display advertising is undervalued or overvalued without creating and comparing an attribution model with the last touch attribution model. 

Here custom attribution models comes into picture.

You create a hypothesis and then test it by creating a custom attribution model.

You then compare your model with the last touch or some other attribution model.

The hypothesis you create is based on your analysis.

Your hypothesis could be something like:

“If a user completes a goal conversion on my website within 12 hours after viewing (but not clicking) one of my display ads then the display ad impressions, should get two times more conversion credit than the other interactions in the conversion path”

You can test this hypothesis by creating a custom attribution model.

But before you can create our own attribution model, you need to first learn about the various nuts and bolts of custom attribution modelling.

Attribution Modelling in Google Ads and FacebookAttribution Modelling in Google Analytics and Beyond

Get my best selling books on Attribution Modelling

  • Learn to implement attribution modelling in your organisation
  • Understand the customer purchase journey across devices
  • Determine the most effective marketing channels for investment

 Click book covers to find out more

Technical requirements for creating a custom attribution model

Goal Conversion tracking and/or ecommerce tracking setup is the primary technical requirement for creating a custom attribution model in Google Analytics.

In Google Analytics, there are two types of attribution models:

#1 Baseline attribution models (which are pre-built models)

#2 Custom attribution models (which are user defined models)

In GA, you can not create a custom attribution model from scratch.

The attribution model that you create, will be built on top of a baseline attribution model.

You use default model as a starting point for your custom model.

So, before you can create your own attribution model, you would first need to select a baseline model for your custom model. 

This baseline model defines, how credit for conversions should be attributed to various touch points in a conversion path before custom credit rules are applied.

When you build your own attribution model, you create your own rules to assign credit for conversions to different interactions/touch points in a conversion path.

These rules are known by the name ‘custom credit rules’ in Google Analytics. 

Adjusting credit means, distributing credit for conversions to various interactions in a conversion path.

By adjusting credit for interactions, you can customize how interactions are valued.

Follow the steps below to create your own attribution model.

Step-1: Develop ‘great’ understanding of your business

You have developed that ‘great’ understanding when you can confidently look beyond data and raw numbers and can make business and marketing decisions based on:

  • Context.
  • Faith (a collective know-how of your organization, target audience and industry).
  • All business and marketing activities which are outside the digital realm.

Attribution modelling is a very advanced stage of business analysis where we determine most effective marketing channels for investment and there is almost always, lot of money at stake.

An incorrect attribution can result in huge monetary loss for you or your client.

Therefore great understanding of the business, for which you wish to carry out attribution modelling is mandatory.

Otherwise your attribution modelling is most likely to be flawed.

Step-2: Fix data collection issues

Make sure that you are tracking all of the website usage data and that data is as accurate as technically possible and you are not facing any data sampling issues.

Step-3: Set up goal conversion tracking and/or ecommerce tracking

This is primary requirement for creating a custom attribution model.

Step-4: Track only relevant goals

Make sure that you are tracking all but only relevant goals (and not something like ‘time spent on website’) along with their correct goal value.

A conversion without a goal value (or economic value) is a bogus conversion as it does not add any value to the business bottomline.

Track only those goals which are really useful for your business. Irrelevant goals can greatly skew your conversion volume and conversion rates, pollute your multi channel funnel data and make attribution modelling flawed.

Step-5: Fix cross device attribution issues

If your website has got considerable amount of cross device attribution issues then you need to fix them first.

Otherwise your attribution modelling is going to produce flawed results.

This happen because the attribution modelling reports provided by GA, mainly report on single device single browser attributions.

Step-6: Import cost data for all paid marketing campaigns/channels into Google Analytics

You may be getting tons of sales and conversions but if you don’t keep an eye on ‘cost per acquisition’ then the cost can literally kill your marketing ROI.

Attribution modelling is most useful when it take ‘cost’ into account.

Step-7: Create your hypothesis

You create a hypothesis and then test it by creating a custom attribution model.

The hypothesis you create is based on your analysis and the attribution problem you are trying to solve.

Step-8: Create custom attribution model

#1 Navigate to Model Comparison Tool (under Conversions > Attribution in your GA view):

#2 From the ‘select model’ drop down menu click on ‘create new custom model’:


#3 Name your model and select a baseline model (like linear, time decay or position based):


#4 Select baseline model on the basis of your business model and advertising objectives.

To learn more, read this article: Guidelines for selecting an Attribution model in Google Analytics

#5 Set conversion credits and specify look back window:


#6 Adjust conversion credit based on user engagement.

The user engagement can be in the form of  ‘time on site’ or ‘page depth’:


Note: Step-6 is optional.

#7: Create and apply new custom credit rules.

These rules define how credit should be distributed to various touch points / interactions in a conversion path.

Each rule is based on one or more conditions:


#8 Once you have added all the custom credit rules, Click on ‘save and apply’ button.

#9 Compare your attribution model with other models and valuate your marketing channels and campaigns.


For practical use of model comparison, read this article: Attribution Model Comparison Tool in Google Analytics

Sharing custom attribution models

You can share your custom attribution models with others, by clicking on the ‘share’ button, next to the custom model you wish to share:



When you share custom attribution model, only the attribution model template is shared and not your attribution data.

Other articles on Attribution Modelling in Google Analytics

  1. Touch Point Analysis in Google Analytics Attribution Modelling
  2. 8 Google Analytics Conversions Segments You Must Use
  3. Default and Custom Attribution Models in Google Analytics
  4. Attribution Model Comparison Tool in Google Analytics
  5. Which Attribution Model to use in Google Analytics?
  6. How to create Custom Attribution Model in Google Analytics

  1. How to do ROI Analysis in Google Analytics
  2. Google Analytics Attribution Modelling – Complete Guide
  3. Guide to Data Driven Attribution Model in Google Analytics
  4. Conversion Credit distribution for Attribution Models in Google Analytics
  5. You are doing Google Analytics all wrong. Here is why

  1. Marketing Mix Modelling or Attribution Modelling. Which one is for you?
  2. Introduction to Nonline Analytics – True Multi Channel Analytics
  3. How to set up Data driven attribution model in Google Analytics
  4. How to valuate Display Advertising through Attribution Modelling
  5. Understanding Shopping Carts for Analytics and Conversion Optimization

  1. View-through conversion tracking in Google Analytics
  2. Understanding Missing Touch Points in Attribution Modelling
  3. Guide to Offline Conversion Tracking in Google Analytics
  4. How to explain attribution modelling to your clients
  5. 6 Keys to Digital Success in Attribution Modelling

  1. How to use ZMOT to increase Conversions and Sales exponentially
  2. How to Measure and Improve the Quality of SEO Traffic through Google Analytics
  3. How to analyse and report the true value of your SEO Campaign
  4. How to allocate Budgets in Multi Channel Marketing
  5. What You Should Know about Historical Data in Web Analytics

  1. Google Analytics Not Provided Keywords and how to unlock and analyze them
  2. Selecting the Best Attribution Model for Inbound Marketing
  3. Introduction to TV attribution in Google Analytics Attribution 360
  4. Cross Device Reports in Google Analytics via Google Signals
  5. Data-Driven Attribution Model Explorer in Google Analytics
  6. What is Attribution Modelling and why it is the ‘key’ to online business success?
  7. How Does Attribution Work?
  8. How is Attribution Modelling helpful for e-commerce and non-e-commerce websites?

Most Popular E-Books from OptimizeSmart

Learn to read e-commerce reports book banner

How to learn and master Web Analytics and Google Analytics?

Take the Course

Check out my best selling books on Web Analytics and Conversion Optimization on Amazon

How to get lot more useful information?

I share lot more useful information on Web Analytics and Google Analytics on LinkedIn then I can via any other medium. So there is really an incentive for you, to follow me there.

Himanshu Sharma

Certified web analyst and founder of

My name is Himanshu Sharma and I help businesses find and fix their Google Analytics and conversion issues. If you have any questions or comments please contact me.

  • Over twelve years' experience in SEO, PPC and web analytics
  • Google Analytics certified
  • Google AdWords certified
  • Nominated for Digital Analytics Association Award for Excellence
  • Bachelors degree in Internet Science
  • Founder of and

I am also the author of four books:

error: Alert: Content is protected !!