Canon
Canon is essentially the fluff of a setting that is officially approved by whomever is in charge of that intellectual property. In essence, the notion that some made-up stories are more "real" than others.
It should be noted that canon ≠ cannon, no matter how frequently it is used as such. A lot of people confuse canon with 'continuity', 'consistency' or 'consensus'. Many state they have a "personal canon", or "headcanon". Sadly, that's not how canon works. Canon is what someone who is in charge of a particular fictional world tells you counts or doesn't count. Conflict arises when the canonical view doesn't match the consensus view. For example, Jar-Jar-Binks is part of the Star Wars Canon, because Disney says so. But the general consensus among Star Wars fans is to pretend that Jar-Jar-Binks never existed. This is commonly referred to as "fanon", as the consensus view is most often adopted by the average fans of a franchise, even if it directly contradicts the canon proper.
Canon itself can be sometimes unclear or subject to change, especially in works which have more than one author and have been poorly managed. The latter can be often seen in changes that occur between editions of a roleplaying game; for example, in 3rd edition D&D, the transformation of a Drow into the monstrous Drider was a punishment; in 4th edition it is a blessing the goddess bestows on the best of the society. When canon is changed in a way that counteracts previously established canon, it is called a retcon. Retcons often induce rage.
Doctor Who is an example of a work involving multiple authors where the shows producers have officially denounced the notion of canon, by stating: "It is impossible for a show about a dimension-hopping time traveller to have a canon." The show (and spin-offs) has continuity and consistency (such as how he's always played by a British man, though not the same actor, even though the Doctor can shape-shift into a person of any nationality or gender), but no official canon.
Games Workshop and canon
Games Workshop's official stance is that all of the fluff is told by an Unreliable Narrator and comes from a compromised position where all the facts may not be known, or deliberately concealed, so is therefore true and false at the same time. This is so they can sell you multiple stories and products without having to wade through 25 years worth of bullshit, self-contradictions, and inconsistencies. This frustrates and annoys fa/tg/uys, who pull a fit every time their comic book collection gets even slightly out of order. However, it's pretty common practice in most large franchises. This stance actually allows individuals to have their own personal canon and are able to pick and choose canon as they see fit.
This particular stance by GW is detailed by Gav Thorpe, who has been both a games developer and an author:
"[...] is the job of authors and games developers to illuminate and inspire, not to dictate. Perhaps you disagree with the portrayal of a certain faction, or a facet of their society doesn’t make sense in your version of the world. You may not like the answers presented, but in asking the question you can come up with a solution that matches your vision. As long as certain central themes and principles remain, you can pick and choose which parts you like and dislike."
But of course, people don't see it that way and would rather be dictated to, instead wanting their galaxy-sweeping, massively-scaled space opera to be detailed right down to how many pubic hairs Roboute Guilliman has. Warhammer and Warhammer 40,000 have continuity and consistency to an extent, but nothing can be truly described as canon, as the powers that be never set anything in stone (and likely never will)
In the words of Marc Gascoigne (overall manager of Black Library prior to 2008):
"I think the real problem for me, and I speak for no other, is that the topic as a "big question" doesn't matter. It's all as true as everything else, and all just as false/half-remembered/sort-of-true. The answer you are seeking is "Yes and no" or perhaps "Sometimes". And for me, that's the end of it. Now, ask us some specifics, eg can Black Templars spit acid and we can answer that one, and many others. But again note thet answer may well be "sometimes" or "it varies" or "depends". But is it all true? Yes and no. Even though some of it is plainly contradictory? Yes and no. Do we deliberately contradict, retell with differences? Yes we do. Is the newer the stuff the truer it is? Yes and no. In some cases is it true that the older stuff is the truest? Yes and no. Maybe and sometimes. Depends and it varies. It's a decaying universe without GPS and galaxy-wide communication, where precious facts are clung to long after they have been changed out of all recognition. Read A Canticle for Liebowitz by Walter M Miller, about monks toiling to hold onto facts in the aftermath of a nuclear war; that nails it for me. Sorry, too much splurge here. Not meant to sound stroppy. To attempt answer the initial question: What is GW's definition of canon? Perhaps we don't have one. Sometimes and maybe. Or perhaps we do and I'm not telling you."
On the other hand, some authors have truly taken the piss with this policy, such as Captain C.S. MULTI-LAZOR. However, even Games "everything is canon but not everything is true" Workshop have standards, and draw the line at his work, with one of their spokespeople saying it could've benefited from an editor's red pen.
The /tg/ consensus
When it comes to things like Warhammer 40,000, fa/tg/uys tend to throw canon out the window and deal with the setting on their own terms, establishing their own continuity through group consensus (the aforementioned fanon). Picking and choosing which retcons to accept and which to ignore is one of /tg/'s greatest pastimes, and to this end /tg/ has an established a board-wide consensus for almost any setting with more than one edition or author (i.e. all of them). This consensus tends to cross-pollinate with the stuff non-/tg/ fa/tg/uys also tend to like.
To again use Warhammer 40k as an example, an entire "secret" consensus has arose within the fandom, a continuity that "fixes" poorly received retcons, fixes consistency issues and tends to lighten the characters and infuse awesome into the setting wherever possible. /tg/ has even developed an entirely separate universe wherein fa/tg/uys can put all of their homebrew characters and factions.
Note that this a consensus, not canon. Canon is, in theory, what they say it is, whereas consensus is what the majority choose to accept. Consensus is also different from continuity, which in this case is about the look and feel of a series as a whole, rather than exact details.